From b18c1c7291dff7bc38433178466f9c29d8acb74c Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 15 Mar 2023 15:38:44 +0000 Subject: [PATCH] LibUnicode: Remove now-unused dir-iterator helper functions --- .../CodeGenerators/LibUnicode/GeneratorUtil.h | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h index 1031cec4dff..9e2a3c292c9 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h @@ -20,7 +20,6 @@ #include #include #include -#include #include #include @@ -341,28 +340,6 @@ inline ErrorOr read_json_file(StringView path) return JsonValue::from_string(buffer); } -inline ErrorOr 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 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;