mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibUnicode: Remove now-unused dir-iterator helper functions
This commit is contained in:
parent
414cafa7f8
commit
b18c1c7291
Notes:
sideshowbarker
2024-07-17 00:47:29 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/b18c1c7291 Pull-request: https://github.com/SerenityOS/serenity/pull/17871 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 0 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue