diff --git a/Kernel/FileSystem/Custody.cpp b/Kernel/FileSystem/Custody.cpp index 5e5e98edc1..06e68fc183 100644 --- a/Kernel/FileSystem/Custody.cpp +++ b/Kernel/FileSystem/Custody.cpp @@ -79,21 +79,6 @@ ErrorOr> Custody::try_serialize_absolute_path() const return string; } -String Custody::absolute_path() const -{ - if (!parent()) - return "/"; - Vector custody_chain; - for (auto const* custody = this; custody; custody = custody->parent()) - custody_chain.append(custody); - StringBuilder builder; - for (int i = custody_chain.size() - 2; i >= 0; --i) { - builder.append('/'); - builder.append(custody_chain[i]->name()); - } - return builder.to_string(); -} - bool Custody::is_readonly() const { if (m_mount_flags & MS_RDONLY) diff --git a/Kernel/FileSystem/Custody.h b/Kernel/FileSystem/Custody.h index b688ae660c..ca6b498c8c 100644 --- a/Kernel/FileSystem/Custody.h +++ b/Kernel/FileSystem/Custody.h @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -31,7 +30,6 @@ public: Inode const& inode() const { return *m_inode; } StringView name() const { return m_name->view(); } ErrorOr> try_serialize_absolute_path() const; - String absolute_path() const; int mount_flags() const { return m_mount_flags; } bool is_readonly() const;