From 154319d0635da7da3523519e28702e4a0ff85bba Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 2 May 2013 00:25:17 -0700 Subject: [PATCH] Remove some header leftovers based on Scott's script hints. False positive rate of hints is quite high. Although the includes can be technically removed (due to other includes) they logically belong to the header. --- src/Compare.h | 2 -- src/Cursor.h | 2 -- src/ErrorList.h | 1 - src/LayoutFile.h | 1 - src/LyXRC.h | 1 - src/ModuleList.h | 1 - src/ParIterator.h | 2 -- src/Thesaurus.h | 1 - src/VCBackend.cpp | 1 - src/frontends/qt4/Dialog.h | 1 - src/frontends/qt4/FindAndReplace.h | 2 -- src/frontends/qt4/GuiCompleter.h | 2 -- src/frontends/qt4/GuiDocument.h | 2 -- src/frontends/qt4/GuiParagraph.h | 4 ---- src/frontends/qt4/GuiProgress.h | 2 -- src/frontends/qt4/GuiToc.h | 4 ---- src/frontends/qt4/GuiViewSource.h | 1 - src/frontends/qt4/GuiWorkArea_Private.h | 1 - src/frontends/qt4/Menus.h | 2 -- src/mathed/InsetMathBig.h | 2 -- src/mathed/InsetMathBox.h | 2 -- src/mathed/InsetMathDelim.h | 2 -- src/mathed/InsetMathEnv.h | 2 -- src/mathed/InsetMathExFunc.h | 2 -- src/mathed/MathSupport.h | 1 - 25 files changed, 44 deletions(-) diff --git a/src/Compare.h b/src/Compare.h index f07ecea714..2467cbc592 100644 --- a/src/Compare.h +++ b/src/Compare.h @@ -21,8 +21,6 @@ #include #include -#include - namespace lyx { diff --git a/src/Cursor.h b/src/Cursor.h index 85ef62f7c8..e84702cb71 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -19,8 +19,6 @@ #include "mathed/MathParser_flags.h" -#include - namespace lyx { diff --git a/src/ErrorList.h b/src/ErrorList.h index d0b77439ac..7feceac9ac 100644 --- a/src/ErrorList.h +++ b/src/ErrorList.h @@ -16,7 +16,6 @@ #include "support/types.h" #include -#include namespace lyx { diff --git a/src/LayoutFile.h b/src/LayoutFile.h index 31031eae8e..d2c87258ea 100644 --- a/src/LayoutFile.h +++ b/src/LayoutFile.h @@ -20,7 +20,6 @@ #include -#include #include #include diff --git a/src/LyXRC.h b/src/LyXRC.h index dbda8d9153..25e1fc1dc0 100644 --- a/src/LyXRC.h +++ b/src/LyXRC.h @@ -26,7 +26,6 @@ #include #include #include -#include namespace lyx { diff --git a/src/ModuleList.h b/src/ModuleList.h index 90894b8109..9f6434ef81 100644 --- a/src/ModuleList.h +++ b/src/ModuleList.h @@ -12,7 +12,6 @@ #ifndef MODULELIST_H #define MODULELIST_H -#include #include #include diff --git a/src/ParIterator.h b/src/ParIterator.h index 320493dac0..a763183838 100644 --- a/src/ParIterator.h +++ b/src/ParIterator.h @@ -16,8 +16,6 @@ #include "support/types.h" -#include - namespace lyx { diff --git a/src/Thesaurus.h b/src/Thesaurus.h index a479fda962..e27f2c239a 100644 --- a/src/Thesaurus.h +++ b/src/Thesaurus.h @@ -17,7 +17,6 @@ #include "WordLangTuple.h" #include -#include #include namespace lyx { diff --git a/src/VCBackend.cpp b/src/VCBackend.cpp index 751f8032dc..96b71d81ea 100644 --- a/src/VCBackend.cpp +++ b/src/VCBackend.cpp @@ -34,7 +34,6 @@ using namespace std; using namespace lyx::support; - namespace lyx { diff --git a/src/frontends/qt4/Dialog.h b/src/frontends/qt4/Dialog.h index af33f3fe8a..a9769ff4ab 100644 --- a/src/frontends/qt4/Dialog.h +++ b/src/frontends/qt4/Dialog.h @@ -18,7 +18,6 @@ #include "support/strfwd.h" -#include #include class QWidget; diff --git a/src/frontends/qt4/FindAndReplace.h b/src/frontends/qt4/FindAndReplace.h index 354278b9af..9b69e2658b 100644 --- a/src/frontends/qt4/FindAndReplace.h +++ b/src/frontends/qt4/FindAndReplace.h @@ -25,8 +25,6 @@ #include "Text.h" #include "lyxfind.h" -#include - #include namespace lyx { diff --git a/src/frontends/qt4/GuiCompleter.h b/src/frontends/qt4/GuiCompleter.h index 20b50e7ab4..dcc5b04038 100644 --- a/src/frontends/qt4/GuiCompleter.h +++ b/src/frontends/qt4/GuiCompleter.h @@ -18,9 +18,7 @@ #include "qt_helpers.h" #include "support/docstring.h" -#include #include -#include #include namespace lyx { diff --git a/src/frontends/qt4/GuiDocument.h b/src/frontends/qt4/GuiDocument.h index 695779d3f7..413e2e29e9 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -13,8 +13,6 @@ #ifndef GUIDOCUMENT_H #define GUIDOCUMENT_H -#include - #include "BufferParams.h" #include "BulletsModule.h" #include "GuiDialog.h" diff --git a/src/frontends/qt4/GuiParagraph.h b/src/frontends/qt4/GuiParagraph.h index 408765bbe4..201d9a09ed 100644 --- a/src/frontends/qt4/GuiParagraph.h +++ b/src/frontends/qt4/GuiParagraph.h @@ -22,10 +22,6 @@ #include "Layout.h" #include "ParagraphParameters.h" -#include -#include -#include - #include namespace lyx { diff --git a/src/frontends/qt4/GuiProgress.h b/src/frontends/qt4/GuiProgress.h index a514733eb7..35168c7abd 100644 --- a/src/frontends/qt4/GuiProgress.h +++ b/src/frontends/qt4/GuiProgress.h @@ -17,8 +17,6 @@ #include "DockView.h" - -#include #include #include diff --git a/src/frontends/qt4/GuiToc.h b/src/frontends/qt4/GuiToc.h index 5e759895a5..1e73832cf4 100644 --- a/src/frontends/qt4/GuiToc.h +++ b/src/frontends/qt4/GuiToc.h @@ -21,10 +21,6 @@ #include "TocBackend.h" -#include - -#include - namespace lyx { namespace frontend { diff --git a/src/frontends/qt4/GuiViewSource.h b/src/frontends/qt4/GuiViewSource.h index d42c1161af..6d16142249 100644 --- a/src/frontends/qt4/GuiViewSource.h +++ b/src/frontends/qt4/GuiViewSource.h @@ -22,7 +22,6 @@ #include #include -#include class QTextDocument; diff --git a/src/frontends/qt4/GuiWorkArea_Private.h b/src/frontends/qt4/GuiWorkArea_Private.h index 9b339d060e..8b34ede1ad 100644 --- a/src/frontends/qt4/GuiWorkArea_Private.h +++ b/src/frontends/qt4/GuiWorkArea_Private.h @@ -19,7 +19,6 @@ #include "support/docstring.h" #include "support/Timeout.h" -#include #include #include #include diff --git a/src/frontends/qt4/Menus.h b/src/frontends/qt4/Menus.h index bbc4955930..0ee073e9fb 100644 --- a/src/frontends/qt4/Menus.h +++ b/src/frontends/qt4/Menus.h @@ -15,8 +15,6 @@ #include -#include - class QString; class QMenuBar; diff --git a/src/mathed/InsetMathBig.h b/src/mathed/InsetMathBig.h index 5e511db0f4..e42582c531 100644 --- a/src/mathed/InsetMathBig.h +++ b/src/mathed/InsetMathBig.h @@ -14,8 +14,6 @@ #include "InsetMath.h" -#include - namespace lyx { diff --git a/src/mathed/InsetMathBox.h b/src/mathed/InsetMathBox.h index 3dfe2286c3..2f6ba483d9 100644 --- a/src/mathed/InsetMathBox.h +++ b/src/mathed/InsetMathBox.h @@ -14,8 +14,6 @@ #include "InsetMathNest.h" -#include - namespace lyx { diff --git a/src/mathed/InsetMathDelim.h b/src/mathed/InsetMathDelim.h index 72e204ed11..3a09ede2f3 100644 --- a/src/mathed/InsetMathDelim.h +++ b/src/mathed/InsetMathDelim.h @@ -15,8 +15,6 @@ #include "InsetMathNest.h" -#include - namespace lyx { diff --git a/src/mathed/InsetMathEnv.h b/src/mathed/InsetMathEnv.h index 14b72072bc..9bc338d904 100644 --- a/src/mathed/InsetMathEnv.h +++ b/src/mathed/InsetMathEnv.h @@ -14,8 +14,6 @@ #include "InsetMathNest.h" -#include - namespace lyx { diff --git a/src/mathed/InsetMathExFunc.h b/src/mathed/InsetMathExFunc.h index 7318929889..c3a43acfd1 100644 --- a/src/mathed/InsetMathExFunc.h +++ b/src/mathed/InsetMathExFunc.h @@ -15,8 +15,6 @@ #include "InsetMathNest.h" -#include - namespace lyx { diff --git a/src/mathed/MathSupport.h b/src/mathed/MathSupport.h index f31606615f..dc0087f915 100644 --- a/src/mathed/MathSupport.h +++ b/src/mathed/MathSupport.h @@ -15,7 +15,6 @@ #include "MathParser_flags.h" #include "support/strfwd.h" -#include namespace lyx {