mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 11:36:22 +00:00
LibIDL: Remove unused required_imported_paths field from Interface
This commit is contained in:
parent
3eb07a9b8b
commit
4d9b6645d7
Notes:
sideshowbarker
2024-07-17 06:20:50 +09:00
Author: https://github.com/tcl3
Commit: 4d9b6645d7
Pull-request: https://github.com/SerenityOS/serenity/pull/24088
2 changed files with 0 additions and 7 deletions
|
@ -1011,7 +1011,6 @@ Interface& Parser::parse()
|
||||||
|
|
||||||
Vector<Interface&> imports;
|
Vector<Interface&> imports;
|
||||||
{
|
{
|
||||||
HashTable<ByteString> required_imported_paths;
|
|
||||||
while (lexer.consume_specific("#import"sv)) {
|
while (lexer.consume_specific("#import"sv)) {
|
||||||
consume_whitespace();
|
consume_whitespace();
|
||||||
assert_specific('<');
|
assert_specific('<');
|
||||||
|
@ -1019,13 +1018,10 @@ Interface& Parser::parse()
|
||||||
lexer.ignore();
|
lexer.ignore();
|
||||||
auto maybe_interface = resolve_import(path);
|
auto maybe_interface = resolve_import(path);
|
||||||
if (maybe_interface.has_value()) {
|
if (maybe_interface.has_value()) {
|
||||||
for (auto& entry : maybe_interface.value().required_imported_paths)
|
|
||||||
required_imported_paths.set(entry);
|
|
||||||
imports.append(maybe_interface.release_value());
|
imports.append(maybe_interface.release_value());
|
||||||
}
|
}
|
||||||
consume_whitespace();
|
consume_whitespace();
|
||||||
}
|
}
|
||||||
interface.required_imported_paths = move(required_imported_paths);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_non_interface_entities(true, interface);
|
parse_non_interface_entities(true, interface);
|
||||||
|
@ -1185,8 +1181,6 @@ Interface& Parser::parse()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (interface.will_generate_code())
|
|
||||||
interface.required_imported_paths.set(this_module);
|
|
||||||
interface.imported_modules = move(imports);
|
interface.imported_modules = move(imports);
|
||||||
|
|
||||||
if (top_level_parser() == this)
|
if (top_level_parser() == this)
|
||||||
|
|
|
@ -306,7 +306,6 @@ public:
|
||||||
HashMap<ByteString, HashTable<ByteString>> included_mixins;
|
HashMap<ByteString, HashTable<ByteString>> included_mixins;
|
||||||
|
|
||||||
ByteString module_own_path;
|
ByteString module_own_path;
|
||||||
HashTable<ByteString> required_imported_paths;
|
|
||||||
Vector<Interface&> imported_modules;
|
Vector<Interface&> imported_modules;
|
||||||
|
|
||||||
HashMap<ByteString, Vector<Function&>> overload_sets;
|
HashMap<ByteString, Vector<Function&>> overload_sets;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue