From 4d9b6645d7835c44dadd0cbeb0f745c5aae12368 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 23 Apr 2024 20:02:32 +0100 Subject: [PATCH] LibIDL: Remove unused required_imported_paths field from Interface --- Userland/Libraries/LibIDL/IDLParser.cpp | 6 ------ Userland/Libraries/LibIDL/Types.h | 1 - 2 files changed, 7 deletions(-) diff --git a/Userland/Libraries/LibIDL/IDLParser.cpp b/Userland/Libraries/LibIDL/IDLParser.cpp index b1ed3316750..c6f730b9405 100644 --- a/Userland/Libraries/LibIDL/IDLParser.cpp +++ b/Userland/Libraries/LibIDL/IDLParser.cpp @@ -1011,7 +1011,6 @@ Interface& Parser::parse() Vector imports; { - HashTable 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) diff --git a/Userland/Libraries/LibIDL/Types.h b/Userland/Libraries/LibIDL/Types.h index 77333aac29f..ba83512426a 100644 --- a/Userland/Libraries/LibIDL/Types.h +++ b/Userland/Libraries/LibIDL/Types.h @@ -306,7 +306,6 @@ public: HashMap> included_mixins; ByteString module_own_path; - HashTable required_imported_paths; Vector imported_modules; HashMap> overload_sets;