From 3eb07a9b8b42ee6aee7dc1744c3b17e6ff388a0b Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Tue, 23 Apr 2024 20:02:32 +0100 Subject: [PATCH] IDLGenerators: Don't duplicate include statements for each import Previously, all `#import` statements generated two identical includes in the generated C++ source code. --- .../LibWeb/BindingsGenerator/IDLGenerators.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index 5a5e8a63da9..d792cb07bd6 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -3762,9 +3762,6 @@ void generate_namespace_implementation(IDL::Interface const& interface, StringBu )~~~"); - for (auto& path : interface.required_imported_paths) - generate_include_for(generator, path); - emit_includes_for_all_imports(interface, generator, interface.pair_iterator_types.has_value()); generator.append(R"~~~( @@ -4028,9 +4025,6 @@ void generate_constructor_implementation(IDL::Interface const& interface, String } } - for (auto& path : interface.required_imported_paths) - generate_include_for(generator, path); - emit_includes_for_all_imports(interface, generator, interface.pair_iterator_types.has_value()); generator.append(R"~~~( @@ -4301,9 +4295,6 @@ void generate_prototype_implementation(IDL::Interface const& interface, StringBu )~~~"); } - for (auto& path : interface.required_imported_paths) - generate_include_for(generator, path); - emit_includes_for_all_imports(interface, generator, interface.pair_iterator_types.has_value()); generator.append(R"~~~( @@ -4594,9 +4585,6 @@ void generate_global_mixin_implementation(IDL::Interface const& interface, Strin )~~~"); - for (auto& path : interface.required_imported_paths) - generate_include_for(generator, path); - emit_includes_for_all_imports(interface, generator, interface.pair_iterator_types.has_value()); generator.append(R"~~~(