diff --git a/uppsrc/CppBase/CppBase.h b/uppsrc/CppBase/CppBase.h index 39aaea959..aae77c296 100644 --- a/uppsrc/CppBase/CppBase.h +++ b/uppsrc/CppBase/CppBase.h @@ -102,7 +102,7 @@ bool IncludesFile(const String& parent_path, const String& header_path); struct FlatPP { Index segment_id; Index usings; - Index includes; +// Index includes; }; const FlatPP& GetFlatPPFile(const char *path); // with #includes resolved diff --git a/uppsrc/CppBase/cpp.cpp b/uppsrc/CppBase/cpp.cpp index f53cb4257..7857fb2a4 100644 --- a/uppsrc/CppBase/cpp.cpp +++ b/uppsrc/CppBase/cpp.cpp @@ -166,8 +166,6 @@ void Cpp::DoFlatInclude(const String& header_path) namespace_using.FindAdd(pp.usings[i]); usings << ";" << pp.usings[i]; } - for(int i = 0; i < pp.includes.GetCount(); i++) - visited.FindAdd(pp.includes[i]); } } diff --git a/uppsrc/CppBase/ppfile.cpp b/uppsrc/CppBase/ppfile.cpp index 4fb2d2be0..670555bbb 100644 --- a/uppsrc/CppBase/ppfile.cpp +++ b/uppsrc/CppBase/ppfile.cpp @@ -430,9 +430,6 @@ const FlatPP& GetFlatPPFile(const char *path, Index& visited) fp.segment_id.Add(pp.segment_id[i]); for(int i = 0; i < pp.usings.GetCount(); i++) fp.usings.Add(pp.usings[i]); - fp.includes.FindAdd(s); - for(int i = 0; i < pp.includes.GetCount(); i++) - fp.includes.FindAdd(pp.includes[i]); } } else diff --git a/uppsrc/ide/Build.cpp b/uppsrc/ide/Build.cpp index 7a3b2eca5..886f06ec0 100644 --- a/uppsrc/ide/Build.cpp +++ b/uppsrc/ide/Build.cpp @@ -159,7 +159,6 @@ void Ide::PreprocessInternal() { if(editor.GetLength() >= 1000000) // Sanity... return; - LOG("===== Preprocess internal"); int l = editor.GetCurrentLine(); PPSync(GetIncludePath()); String pfn = ConfigFile(GetFileTitle(editfile) + ".i.tmp");