mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
LibIDL: Remove unused required_imported_paths field from Interface
This commit is contained in:
parent
3eb07a9b8b
commit
4d9b6645d7
|
@ -1011,7 +1011,6 @@ Interface& Parser::parse()
|
|||
|
||||
Vector<Interface&> imports;
|
||||
{
|
||||
HashTable<ByteString> required_imported_paths;
|
||||
while (lexer.consume_specific("#import"sv)) {
|
||||
consume_whitespace();
|
||||
assert_specific('<');
|
||||
|
@ -1019,13 +1018,10 @@ Interface& Parser::parse()
|
|||
lexer.ignore();
|
||||
auto maybe_interface = resolve_import(path);
|
||||
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());
|
||||
}
|
||||
consume_whitespace();
|
||||
}
|
||||
interface.required_imported_paths = move(required_imported_paths);
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
if (top_level_parser() == this)
|
||||
|
|
|
@ -306,7 +306,6 @@ public:
|
|||
HashMap<ByteString, HashTable<ByteString>> included_mixins;
|
||||
|
||||
ByteString module_own_path;
|
||||
HashTable<ByteString> required_imported_paths;
|
||||
Vector<Interface&> imported_modules;
|
||||
|
||||
HashMap<ByteString, Vector<Function&>> overload_sets;
|
||||
|
|
Loading…
Reference in a new issue