1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

Use HashMap::remove() in some places that I wanted it.

This commit is contained in:
Andreas Kling 2018-10-13 14:26:37 +02:00
parent 969334505d
commit 6ea8ce500c
Notes: sideshowbarker 2024-07-19 18:49:12 +09:00
5 changed files with 10 additions and 5 deletions

View file

@ -18,8 +18,7 @@ FileSystem::FileSystem()
FileSystem::~FileSystem()
{
// FIXME: Needs HashMap::remove()!
//fileSystems().remove(m_id);
fileSystems().remove(m_id);
}
FileSystem* FileSystem::fromID(dword id)

View file

@ -115,11 +115,10 @@ void VirtualFileSystem::freeNode(Node* node)
{
ASSERT(node);
ASSERT(node->inUse());
m_inode2vnode.remove(node->inode);
node->inode.fileSystem()->release();
node->inode = InodeIdentifier();
m_nodeFreeList.append(std::move(node));
// FIXME: Need HashMap::remove.
//m_inode2vnode.remove(node);
}
bool VirtualFileSystem::isDirectory(const String& path)