mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 08:05:07 +00:00
LibUnicode: Remove now-unused dir-iterator helper functions
This commit is contained in:
parent
414cafa7f8
commit
b18c1c7291
1 changed files with 0 additions and 23 deletions
|
@ -20,7 +20,6 @@
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <AK/Traits.h>
|
#include <AK/Traits.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibCore/DirIterator.h>
|
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
#include <LibLocale/Locale.h>
|
#include <LibLocale/Locale.h>
|
||||||
|
|
||||||
|
@ -341,28 +340,6 @@ inline ErrorOr<JsonValue> read_json_file(StringView path)
|
||||||
return JsonValue::from_string(buffer);
|
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)
|
inline void ensure_from_string_types_are_generated(SourceGenerator& generator)
|
||||||
{
|
{
|
||||||
static bool generated_from_string_types = false;
|
static bool generated_from_string_types = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue