1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

FileSystem: Remove now-unused Inode::parent() and Inode::reverse_lookup().

These were only used to implement the old path resolution algorithm.
This commit is contained in:
Andreas Kling 2019-06-01 17:46:37 +02:00
parent 02e21de20a
commit 2e14e5891c
7 changed files with 0 additions and 94 deletions

View file

@ -161,12 +161,6 @@ auto SynthFS::generate_inode_index() -> InodeIndex
return m_next_inode_index++;
}
RetainPtr<Inode> SynthFSInode::parent() const
{
LOCKER(m_lock);
return fs().get_inode(m_parent);
}
RetainPtr<Inode> SynthFS::get_inode(InodeIdentifier inode) const
{
LOCKER(m_lock);
@ -252,17 +246,6 @@ InodeIdentifier SynthFSInode::lookup(const String& name)
return { };
}
String SynthFSInode::reverse_lookup(InodeIdentifier child_id)
{
LOCKER(m_lock);
ASSERT(is_directory());
for (auto& child : m_children) {
if (child->identifier() == child_id)
return child->m_name;
}
return { };
}
void SynthFSInode::flush_metadata()
{
}