]> git.lyx.org Git - features.git/commitdiff
Remove duplicate and unused header includes in .cpp files
authorYuriy Skalko <yuriy.skalko@gmail.com>
Mon, 12 Oct 2020 12:30:07 +0000 (15:30 +0300)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Mon, 19 Oct 2020 15:01:11 +0000 (18:01 +0300)
32 files changed:
src/Paragraph.cpp
src/frontends/qt/Dialog.cpp
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiCharacter.cpp
src/frontends/qt/GuiCitation.cpp
src/frontends/qt/GuiCounter.cpp
src/frontends/qt/GuiDocument.cpp
src/frontends/qt/GuiExternal.cpp
src/frontends/qt/GuiIndex.cpp
src/frontends/qt/GuiLog.cpp
src/frontends/qt/GuiNote.cpp
src/frontends/qt/GuiPhantom.cpp
src/frontends/qt/GuiPrefs.cpp
src/frontends/qt/GuiTabular.cpp
src/frontends/qt/GuiToc.cpp
src/frontends/qt/GuiView.cpp
src/frontends/qt/Menus.cpp
src/insets/InsetLayout.cpp
src/insets/InsetPhantom.cpp
src/lyxfind.cpp
src/mathed/InsetMathEnv.cpp
src/mathed/InsetMathExInt.cpp
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathMacroTemplate.cpp
src/mathed/InsetMathNest.cpp
src/mathed/InsetMathNumber.cpp
src/mathed/InsetMathTabular.cpp
src/mathed/InsetMathXArrow.cpp
src/mathed/MacroTable.cpp
src/mathed/MathParser.cpp
src/mathed/MathRow.cpp
src/support/lassert.cpp

index d69fa55bb539459b0760adc24d19724a6da75ec3..f3dc50feb60886a47bd6aa0b4ada4153ae8013fd 100644 (file)
@@ -39,9 +39,7 @@
 #include "output_docbook.h"
 #include "ParagraphParameters.h"
 #include "SpellChecker.h"
-#include "xml.h"
 #include "texstream.h"
-#include "TextClass.h"
 #include "TexRow.h"
 #include "Text.h"
 #include "WordLangTuple.h"
 
 #include "support/debug.h"
 #include "support/docstring_list.h"
-#include "support/ExceptionMessage.h"
 #include "support/gettext.h"
 #include "support/lassert.h"
-#include "support/Length.h"
 #include "support/lstrings.h"
 #include "support/textutils.h"
-#include "output_docbook.h"
 
 #include <algorithm>
 #include <atomic>
index b09163b25a438083888512067cf7b7abd1f20d4c..7590a54ae6d7c98e5eb10cd85f61db16a6c7c533 100644 (file)
 #include "FuncStatus.h"
 #include "LyX.h"
 
-#include "insets/Inset.h"
-
 #include "support/debug.h"
 #include "support/gettext.h"
 #include "support/lassert.h"
 
-#include <QLabel>
-#include <QLineEdit>
-#include <QList>
 #include <QSettings>
-#include <QString>
-#include <QValidator>
 
 #include <string>
 
index 4d88135f75ca3e0f86c4d6ee361f4380e8cca83b..2c87ad10a2aecb6210b105bb8e1c7df58de1b3c0 100644 (file)
@@ -16,9 +16,7 @@
 
 #include "ToolTipFormatter.h"
 #include "ColorCache.h"
-#include "ColorSet.h"
 #include "GuiClipboard.h"
-#include "GuiKeySymbol.h"
 #include "GuiSelection.h"
 #include "GuiView.h"
 #include "Menus.h"
index 3de83382311ecff446dd1d77c487c0500c046f54..96e8d736ffb47cd11186d776efedb9acff442ee2 100644 (file)
@@ -18,7 +18,6 @@
 #include "GuiApplication.h"
 #include "qt_helpers.h"
 
-#include "Font.h"
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BufferView.h"
index 951bad86129a1522d898424b1c02e0d1bb05fe8a..d7e5ae0199959bff3a3d7f41b6597995eb1910dc 100644 (file)
@@ -22,7 +22,6 @@
 
 #include "Buffer.h"
 #include "BufferView.h"
-#include "BiblioInfo.h"
 #include "BufferParams.h"
 #include "TextClass.h"
 #include "FuncRequest.h"
@@ -42,9 +41,6 @@
 #include <QStandardItemModel>
 #include <QVariant>
 
-#include <vector>
-#include <string>
-
 #undef KeyPress
 
 #include "support/regex.h"
index db081a46c52201312cf6e39e41df6e5b45664a66..d7685bc7bb4ee32e22f87a236c6f72d726acb671 100644 (file)
@@ -25,8 +25,6 @@
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
-#include "qt_helpers.h"
-
 #include <map>
 //#include <vector>
 
index 9d3643de7ee7f42472c71a0c359b8233836a7a06..883b283629b39fa644008bb2e84c2a7060532e6d 100644 (file)
 #include "GuiIndices.h"
 #include "GuiSelectionManager.h"
 #include "LaTeXHighlighter.h"
-#include "LengthCombo.h"
-#include "PanelStack.h"
 #include "Validator.h"
 
 #include "LayoutFile.h"
 #include "BranchList.h"
 #include "buffer_funcs.h"
 #include "Buffer.h"
-#include "BufferParams.h"
 #include "BufferView.h"
 #include "CiteEnginesList.h"
 #include "Color.h"
index eb71aad4d1d9df0dd9ac03c47e24facbb6ca1cfb..3a4ab2c91ebf574ec18697447e59c4ecc13a9963 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "insets/ExternalSupport.h"
 #include "insets/ExternalTemplate.h"
-#include "insets/InsetExternal.h"
 
 #include "graphics/epstools.h"
 #include "graphics/GraphicsCache.h"
index 7800bad2d456a18c48708697907b4d58d84f063a..a59ac3953f27222cda4b910d5ac717a7a55330fb 100644 (file)
@@ -21,8 +21,6 @@
 #include "FuncRequest.h"
 #include "IndicesList.h"
 
-#include "insets/InsetIndex.h"
-
 #include <QPushButton>
 
 using namespace std;
index 6851994701067974cc0c442297ac4e4af6fee13f..16979138d897c4fc335c7f365c62696e920c5680 100644 (file)
@@ -21,7 +21,6 @@
 #include "frontends/Clipboard.h"
 
 #include "support/docstring.h"
-#include "support/FileName.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
index 6c87850d403c74b99e82b208fa6837aeaee00968..a70a809dfa5f02c5572090bb04c433fe7faa0dea 100644 (file)
@@ -15,8 +15,6 @@
 #include "FuncRequest.h"
 #include "support/gettext.h"
 
-#include "insets/InsetNote.h"
-
 using namespace std;
 
 namespace lyx {
index 973ec823c022eae8764ef09428c1ecc690ca0c3d..1aff3afd3cfc1d974effc859aa36e28b6f3009fd 100644 (file)
@@ -14,8 +14,6 @@
 #include "FuncRequest.h"
 #include "support/gettext.h"
 
-#include "insets/InsetPhantom.h"
-
 using namespace std;
 
 namespace lyx {
index 093efe0e559e3124b47a9a174696ed63e6264b6d..50760ed13af3c7d33658bd8c773eb3cde319367c 100644 (file)
@@ -19,7 +19,6 @@
 #include "GuiFontExample.h"
 #include "GuiFontLoader.h"
 #include "GuiKeySymbol.h"
-#include "GuiLyXFiles.h"
 #include "GuiView.h"
 #include "qt_helpers.h"
 #include "Validator.h"
@@ -31,7 +30,6 @@
 #include "ConverterCache.h"
 #include "FontEnums.h"
 #include "FuncRequest.h"
-#include "KeyMap.h"
 #include "KeySequence.h"
 #include "Language.h"
 #include "LyXAction.h"
index 1df93d86ab27911b3c9b3dee2b0a3b3dd3d1ca4a..ce28491b3428c0a4dd1b707466688a138f879741 100644 (file)
@@ -31,8 +31,6 @@
 #include "LyX.h"
 #include "LyXRC.h"
 
-#include "insets/InsetTabular.h"
-
 #include "support/convert.h"
 #include "support/debug.h"
 #include "support/lstrings.h"
index 793ee1efd20d5b13a557da453cae0921a17c27b4..e9ee840fd88cd47399b6a4ad7e2076b8ea4dd261 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "GuiToc.h"
 #include "GuiView.h"
-#include "DockView.h"
 #include "TocWidget.h"
 #include "qt_helpers.h"
 
index 919c9e1bc7c9cffcfdabe6fae45a43407b2df86b..d417ffecd93d081397bd6fece2390693a2741237 100644 (file)
@@ -20,7 +20,6 @@
 #include "FontLoader.h"
 #include "GuiApplication.h"
 #include "GuiClickableLabel.h"
-#include "GuiCommandBuffer.h"
 #include "GuiCompleter.h"
 #include "GuiKeySymbol.h"
 #include "GuiToc.h"
@@ -51,9 +50,7 @@
 #include "Format.h"
 #include "FuncStatus.h"
 #include "FuncRequest.h"
-#include "Intl.h"
 #include "Language.h"
-#include "Layout.h"
 #include "LayoutFile.h"
 #include "Lexer.h"
 #include "LyXAction.h"
@@ -64,7 +61,6 @@
 #include "SpellChecker.h"
 #include "Session.h"
 #include "TexRow.h"
-#include "TextClass.h"
 #include "Text.h"
 #include "Toolbars.h"
 #include "version.h"
@@ -73,9 +69,7 @@
 #include "support/debug.h"
 #include "support/ExceptionMessage.h"
 #include "support/FileName.h"
-#include "support/filetools.h"
 #include "support/gettext.h"
-#include "support/filetools.h"
 #include "support/ForkedCalls.h"
 #include "support/lassert.h"
 #include "support/lstrings.h"
@@ -89,8 +83,6 @@
 #include <QAction>
 #include <QApplication>
 #include <QCloseEvent>
-#include <QDebug>
-#include <QDesktopWidget>
 #include <QDragEnterEvent>
 #include <QDropEvent>
 #include <QFuture>
 #include <QPainter>
 #include <QPixmap>
 #include <QPoint>
-#include <QPushButton>
-#include <QScrollBar>
 #include <QSettings>
 #include <QShowEvent>
 #include <QSplitter>
 #include <QStatusBar>
 #include <QSvgRenderer>
 #include <QtConcurrentRun>
-#include <QTime>
 #include <QTimer>
-#include <QToolBar>
 #include <QUrl>
 #include <QWindowStateChangeEvent>
 
index afe43c70f1f697d7d11cf02f625025456b80887c..b433773ad5e061af25eb14eb7a65a7a7bc3f5009 100644 (file)
@@ -29,7 +29,6 @@
 #include "Buffer.h"
 #include "BufferList.h"
 #include "BufferParams.h"
-#include "BufferView.h"
 #include "Converter.h"
 #include "Cursor.h"
 #include "CutAndPaste.h"
index 19e4aa68c369d2e8d560921718695d6dbeeefaad..a675cb5e50017981cb4226f898e45e49132ae3e9 100644 (file)
@@ -15,7 +15,6 @@
 #include "InsetLayout.h"
 
 #include "ColorSet.h"
-#include "Layout.h"
 #include "Lexer.h"
 #include "TextClass.h"
 
index 37367add2ccafa0719b8c51ba57c10f983df3689..24ad8e9118d99aba2175a0474a4c8c38192a5656 100644 (file)
@@ -15,7 +15,6 @@
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BufferView.h"
-#include "BufferParams.h"
 #include "Cursor.h"
 #include "Dimension.h"
 #include "DispatchResult.h"
index 5b4bd3a15d6dd7e1da138da4fb99ad77c7f701eb..e12d4d239a84ec9f691a961f35b3456186cd886a 100644 (file)
 #include "frontends/alert.h"
 
 #include "mathed/InsetMath.h"
-#include "mathed/InsetMathGrid.h"
 #include "mathed/InsetMathHull.h"
 #include "mathed/MathData.h"
 #include "mathed/MathStream.h"
 #include "mathed/MathSupport.h"
 
-#include "support/convert.h"
 #include "support/debug.h"
 #include "support/docstream.h"
 #include "support/FileName.h"
index 2eea5ac4185815f979f39c25b9a119b8f048b532..dd2c391681048b6fc4060f61251f4a01a749c7c1 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "MathData.h"
 #include "MathStream.h"
-#include "MathStream.h"
 
 #include "MetricsInfo.h"
 
index 537870fd9112ea3ded43d259d5a45bcca9b33cb3..f0242c0bdb1893a549c9bf582ac1348f562843cc 100644 (file)
@@ -15,7 +15,6 @@
 #include "LaTeXFeatures.h"
 #include "MathData.h"
 #include "MathStream.h"
-#include "MathStream.h"
 #include "InsetMathSymbol.h"
 
 #include "support/debug.h"
index 70d057cd101c2a2fce5021c9e3c4dd72c836faf7..4125bf6ee5e867fafad72d73627c482dbf26a16c 100644 (file)
@@ -39,7 +39,6 @@
 #include "InsetMathMacro.h"
 #include "InsetMathMacroTemplate.h"
 #include "MetricsInfo.h"
-#include "xml.h"
 #include "Paragraph.h"
 #include "ParIterator.h"
 #include "xml.h"
index a152222cb6ce1a4232ccc494903e5b86fe1dea37..294e24b0730032ead26cee95968f8031be7e3040 100644 (file)
@@ -22,7 +22,6 @@
 #include "MathStream.h"
 #include "MathParser.h"
 #include "MathSupport.h"
-#include "InsetMathMacroArgument.h"
 
 #include "Buffer.h"
 #include "BufferView.h"
index 9d88b1337b9eb6efd4829b725a1dc928dd1e8f72..ada0400f18f51045eff592b219a648477c3d8820 100644 (file)
@@ -30,7 +30,6 @@
 #include "InsetMathUnknown.h"
 #include "MathAutoCorrect.h"
 #include "MathCompletionList.h"
-#include "MathData.h"
 #include "MathFactory.h"
 #include "InsetMathMacro.h"
 #include "InsetMathMacroArgument.h"
index 5a35415786988fc0bbfcc06f9c4387784124775f..593da68d97af0016036fb1e17a16ddbb2bc3325b 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "InsetMathNumber.h"
 #include "MathStream.h"
-#include "MathStream.h"
 #include "MathSupport.h"
 
 #include "MetricsInfo.h"
index e4123a565509cd6dd0b96875a42084a0e102104d..565a71fb186baba5ae373f29e9e983de9455eac6 100644 (file)
@@ -14,7 +14,6 @@
 
 #include "MathData.h"
 #include "MathStream.h"
-#include "MathStream.h"
 
 #include "MetricsInfo.h"
 
index 2ea3b71b5015f0c13730b3ffa806cb449c83d726..37445da1d80b1605e1a9a53fa8fc6373bd330e57 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "MathData.h"
 #include "MathStream.h"
-#include "MathStream.h"
 #include "MathSupport.h"
 
 #include "LaTeXFeatures.h"
index 2a4899a258a788336dba48a218ae62feb90ddfe2..19d45d206902c70997d9baf02d960098f38418e7 100644 (file)
@@ -20,7 +20,6 @@
 #include "InsetMathNest.h"
 
 #include "Buffer.h"
-#include "DocIterator.h"
 #include "InsetList.h"
 #include "Text.h"
 
index 89c742aed9024756b39bd54ea712123710531bbc..f07b2e6409dd1a52fa2a38909b1a72c3f45bef29 100644 (file)
@@ -77,7 +77,6 @@ following hack as starting point to write some macros:
 #include "support/convert.h"
 #include "support/debug.h"
 #include "support/docstream.h"
-#include "support/unique_ptr.h"
 
 #include <sstream>
 
index be61c8a39c21131f169e182a529e8fd7d9f46331..16b64c6b7f2bc2274e1e44be670917bd053370e1 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "MathRow.h"
 
-#include "InsetMath.h"
-#include "MathClass.h"
 #include "MathData.h"
 #include "MathSupport.h"
 
index dcf8acd0112983019d8efa4fa028e60f1d4a71ed..3e594153cbe89ecb879b7d071cb0404ca371b3b9 100644 (file)
@@ -10,7 +10,8 @@
  */
 
 #include <config.h>
-#include <lassert.h>
+
+#include "support/lassert.h"
 
 #include "support/convert.h"
 #include "support/debug.h"
 
 #include <boost/assert.hpp>
 
-#include <QString>
 
 #ifdef LYX_CALLSTACK_PRINTING
 #include <cstdio>
 #include <cstdlib>
 #include <execinfo.h>
 #include <cxxabi.h>
+#include <QString>
 #endif