diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-15 15:38:44 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2023-03-15 12:49:33 -0400 |
commit | b18c1c7291dff7bc38433178466f9c29d8acb74c (patch) | |
tree | 96430ed220a00cf41cb3ac2a9d8758562f665ece | |
parent | 414cafa7f880e0632e8ad96c89c5b030a74a6c65 (diff) | |
download | serenity-b18c1c7291dff7bc38433178466f9c29d8acb74c.zip |
LibUnicode: Remove now-unused dir-iterator helper functions
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h index 1031cec4df..9e2a3c292c 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h @@ -20,7 +20,6 @@ #include <AK/StringView.h> #include <AK/Traits.h> #include <AK/Vector.h> -#include <LibCore/DirIterator.h> #include <LibCore/File.h> #include <LibLocale/Locale.h> @@ -341,28 +340,6 @@ inline ErrorOr<JsonValue> read_json_file(StringView path) return JsonValue::from_string(buffer); } -inline ErrorOr<Core::DirIterator> path_to_dir_iterator(DeprecatedString path, StringView subpath = "main"sv) -{ - LexicalPath lexical_path(move(path)); - if (!subpath.is_empty()) - lexical_path = lexical_path.append(subpath); - - Core::DirIterator iterator(lexical_path.string(), Core::DirIterator::SkipParentAndBaseDir); - if (iterator.has_error()) - return iterator.error(); - - return iterator; -} - -inline ErrorOr<DeprecatedString> next_path_from_dir_iterator(Core::DirIterator& iterator) -{ - auto next_path = iterator.next_full_path(); - if (iterator.has_error()) - return iterator.error(); - - return next_path; -} - inline void ensure_from_string_types_are_generated(SourceGenerator& generator) { static bool generated_from_string_types = false; |