LibCore: Remove unused Directory::create_iterator() method

This commit is contained in:
Sam Atkins 2023-03-02 16:43:02 +00:00 committed by Andreas Kling
parent a4667fdc9b
commit ceaed7440e
Notes: sideshowbarker 2024-07-17 01:55:29 +09:00
2 changed files with 0 additions and 6 deletions

View file

@ -93,9 +93,4 @@ ErrorOr<struct stat> Directory::stat() const
return System::fstat(m_directory_fd); return System::fstat(m_directory_fd);
} }
ErrorOr<DirIterator> Directory::create_iterator() const
{
return DirIterator { path().string() };
}
} }

View file

@ -40,7 +40,6 @@ public:
ErrorOr<NonnullOwnPtr<File>> open(StringView filename, File::OpenMode mode) const; ErrorOr<NonnullOwnPtr<File>> open(StringView filename, File::OpenMode mode) const;
ErrorOr<struct stat> stat() const; ErrorOr<struct stat> stat() const;
int fd() const { return m_directory_fd; } int fd() const { return m_directory_fd; }
ErrorOr<DirIterator> create_iterator() const;
LexicalPath const& path() const { return m_path; } LexicalPath const& path() const { return m_path; }