mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +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:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user