summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-02 16:43:02 +0000
committerAndreas Kling <kling@serenityos.org>2023-03-05 20:23:42 +0100
commitceaed7440e323d5a82ee9d3988e6cf4afd957834 (patch)
tree16053cd8a250221671a7a22396c88ec241ea680e /Userland
parenta4667fdc9bef4f56faf4e0452240997b541e7aec (diff)
downloadserenity-ceaed7440e323d5a82ee9d3988e6cf4afd957834.zip
LibCore: Remove unused Directory::create_iterator() method
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibCore/Directory.cpp5
-rw-r--r--Userland/Libraries/LibCore/Directory.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/Userland/Libraries/LibCore/Directory.cpp b/Userland/Libraries/LibCore/Directory.cpp
index fce9f65103..e63207c7fe 100644
--- a/Userland/Libraries/LibCore/Directory.cpp
+++ b/Userland/Libraries/LibCore/Directory.cpp
@@ -93,9 +93,4 @@ ErrorOr<struct stat> Directory::stat() const
return System::fstat(m_directory_fd);
}
-ErrorOr<DirIterator> Directory::create_iterator() const
-{
- return DirIterator { path().string() };
-}
-
}
diff --git a/Userland/Libraries/LibCore/Directory.h b/Userland/Libraries/LibCore/Directory.h
index a8d2a18ab6..ccc97e0714 100644
--- a/Userland/Libraries/LibCore/Directory.h
+++ b/Userland/Libraries/LibCore/Directory.h
@@ -40,7 +40,6 @@ public:
ErrorOr<NonnullOwnPtr<File>> open(StringView filename, File::OpenMode mode) const;
ErrorOr<struct stat> stat() const;
int fd() const { return m_directory_fd; }
- ErrorOr<DirIterator> create_iterator() const;
LexicalPath const& path() const { return m_path; }