Remove duplicate and unused header includes in .cpp files

This commit is contained in:
Yuriy Skalko 2020-10-12 15:30:07 +03:00
parent fa6ac23e1c
commit d25c10ed81
32 changed files with 3 additions and 68 deletions

View File

@ -39,9 +39,7 @@
#include "output_docbook.h" #include "output_docbook.h"
#include "ParagraphParameters.h" #include "ParagraphParameters.h"
#include "SpellChecker.h" #include "SpellChecker.h"
#include "xml.h"
#include "texstream.h" #include "texstream.h"
#include "TextClass.h"
#include "TexRow.h" #include "TexRow.h"
#include "Text.h" #include "Text.h"
#include "WordLangTuple.h" #include "WordLangTuple.h"
@ -58,13 +56,10 @@
#include "support/debug.h" #include "support/debug.h"
#include "support/docstring_list.h" #include "support/docstring_list.h"
#include "support/ExceptionMessage.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "support/lassert.h" #include "support/lassert.h"
#include "support/Length.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include "support/textutils.h" #include "support/textutils.h"
#include "output_docbook.h"
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>

View File

@ -23,18 +23,11 @@
#include "FuncStatus.h" #include "FuncStatus.h"
#include "LyX.h" #include "LyX.h"
#include "insets/Inset.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "support/lassert.h" #include "support/lassert.h"
#include <QLabel>
#include <QLineEdit>
#include <QList>
#include <QSettings> #include <QSettings>
#include <QString>
#include <QValidator>
#include <string> #include <string>

View File

@ -16,9 +16,7 @@
#include "ToolTipFormatter.h" #include "ToolTipFormatter.h"
#include "ColorCache.h" #include "ColorCache.h"
#include "ColorSet.h"
#include "GuiClipboard.h" #include "GuiClipboard.h"
#include "GuiKeySymbol.h"
#include "GuiSelection.h" #include "GuiSelection.h"
#include "GuiView.h" #include "GuiView.h"
#include "Menus.h" #include "Menus.h"

View File

@ -18,7 +18,6 @@
#include "GuiApplication.h" #include "GuiApplication.h"
#include "qt_helpers.h" #include "qt_helpers.h"
#include "Font.h"
#include "Buffer.h" #include "Buffer.h"
#include "BufferParams.h" #include "BufferParams.h"
#include "BufferView.h" #include "BufferView.h"

View File

@ -22,7 +22,6 @@
#include "Buffer.h" #include "Buffer.h"
#include "BufferView.h" #include "BufferView.h"
#include "BiblioInfo.h"
#include "BufferParams.h" #include "BufferParams.h"
#include "TextClass.h" #include "TextClass.h"
#include "FuncRequest.h" #include "FuncRequest.h"
@ -42,9 +41,6 @@
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QVariant> #include <QVariant>
#include <vector>
#include <string>
#undef KeyPress #undef KeyPress
#include "support/regex.h" #include "support/regex.h"

View File

@ -25,8 +25,6 @@
#include "support/gettext.h" #include "support/gettext.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include "qt_helpers.h"
#include <map> #include <map>
//#include <vector> //#include <vector>

View File

@ -19,15 +19,12 @@
#include "GuiIndices.h" #include "GuiIndices.h"
#include "GuiSelectionManager.h" #include "GuiSelectionManager.h"
#include "LaTeXHighlighter.h" #include "LaTeXHighlighter.h"
#include "LengthCombo.h"
#include "PanelStack.h"
#include "Validator.h" #include "Validator.h"
#include "LayoutFile.h" #include "LayoutFile.h"
#include "BranchList.h" #include "BranchList.h"
#include "buffer_funcs.h" #include "buffer_funcs.h"
#include "Buffer.h" #include "Buffer.h"
#include "BufferParams.h"
#include "BufferView.h" #include "BufferView.h"
#include "CiteEnginesList.h" #include "CiteEnginesList.h"
#include "Color.h" #include "Color.h"

View File

@ -21,7 +21,6 @@
#include "insets/ExternalSupport.h" #include "insets/ExternalSupport.h"
#include "insets/ExternalTemplate.h" #include "insets/ExternalTemplate.h"
#include "insets/InsetExternal.h"
#include "graphics/epstools.h" #include "graphics/epstools.h"
#include "graphics/GraphicsCache.h" #include "graphics/GraphicsCache.h"

View File

@ -21,8 +21,6 @@
#include "FuncRequest.h" #include "FuncRequest.h"
#include "IndicesList.h" #include "IndicesList.h"
#include "insets/InsetIndex.h"
#include <QPushButton> #include <QPushButton>
using namespace std; using namespace std;

View File

@ -21,7 +21,6 @@
#include "frontends/Clipboard.h" #include "frontends/Clipboard.h"
#include "support/docstring.h" #include "support/docstring.h"
#include "support/FileName.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "support/lstrings.h" #include "support/lstrings.h"

View File

@ -15,8 +15,6 @@
#include "FuncRequest.h" #include "FuncRequest.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "insets/InsetNote.h"
using namespace std; using namespace std;
namespace lyx { namespace lyx {

View File

@ -14,8 +14,6 @@
#include "FuncRequest.h" #include "FuncRequest.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "insets/InsetPhantom.h"
using namespace std; using namespace std;
namespace lyx { namespace lyx {

View File

@ -19,7 +19,6 @@
#include "GuiFontExample.h" #include "GuiFontExample.h"
#include "GuiFontLoader.h" #include "GuiFontLoader.h"
#include "GuiKeySymbol.h" #include "GuiKeySymbol.h"
#include "GuiLyXFiles.h"
#include "GuiView.h" #include "GuiView.h"
#include "qt_helpers.h" #include "qt_helpers.h"
#include "Validator.h" #include "Validator.h"
@ -31,7 +30,6 @@
#include "ConverterCache.h" #include "ConverterCache.h"
#include "FontEnums.h" #include "FontEnums.h"
#include "FuncRequest.h" #include "FuncRequest.h"
#include "KeyMap.h"
#include "KeySequence.h" #include "KeySequence.h"
#include "Language.h" #include "Language.h"
#include "LyXAction.h" #include "LyXAction.h"

View File

@ -31,8 +31,6 @@
#include "LyX.h" #include "LyX.h"
#include "LyXRC.h" #include "LyXRC.h"
#include "insets/InsetTabular.h"
#include "support/convert.h" #include "support/convert.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/lstrings.h" #include "support/lstrings.h"

View File

@ -14,7 +14,6 @@
#include "GuiToc.h" #include "GuiToc.h"
#include "GuiView.h" #include "GuiView.h"
#include "DockView.h"
#include "TocWidget.h" #include "TocWidget.h"
#include "qt_helpers.h" #include "qt_helpers.h"

View File

@ -20,7 +20,6 @@
#include "FontLoader.h" #include "FontLoader.h"
#include "GuiApplication.h" #include "GuiApplication.h"
#include "GuiClickableLabel.h" #include "GuiClickableLabel.h"
#include "GuiCommandBuffer.h"
#include "GuiCompleter.h" #include "GuiCompleter.h"
#include "GuiKeySymbol.h" #include "GuiKeySymbol.h"
#include "GuiToc.h" #include "GuiToc.h"
@ -51,9 +50,7 @@
#include "Format.h" #include "Format.h"
#include "FuncStatus.h" #include "FuncStatus.h"
#include "FuncRequest.h" #include "FuncRequest.h"
#include "Intl.h"
#include "Language.h" #include "Language.h"
#include "Layout.h"
#include "LayoutFile.h" #include "LayoutFile.h"
#include "Lexer.h" #include "Lexer.h"
#include "LyXAction.h" #include "LyXAction.h"
@ -64,7 +61,6 @@
#include "SpellChecker.h" #include "SpellChecker.h"
#include "Session.h" #include "Session.h"
#include "TexRow.h" #include "TexRow.h"
#include "TextClass.h"
#include "Text.h" #include "Text.h"
#include "Toolbars.h" #include "Toolbars.h"
#include "version.h" #include "version.h"
@ -73,9 +69,7 @@
#include "support/debug.h" #include "support/debug.h"
#include "support/ExceptionMessage.h" #include "support/ExceptionMessage.h"
#include "support/FileName.h" #include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "support/filetools.h"
#include "support/ForkedCalls.h" #include "support/ForkedCalls.h"
#include "support/lassert.h" #include "support/lassert.h"
#include "support/lstrings.h" #include "support/lstrings.h"
@ -89,8 +83,6 @@
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QCloseEvent> #include <QCloseEvent>
#include <QDebug>
#include <QDesktopWidget>
#include <QDragEnterEvent> #include <QDragEnterEvent>
#include <QDropEvent> #include <QDropEvent>
#include <QFuture> #include <QFuture>
@ -105,8 +97,6 @@
#include <QPainter> #include <QPainter>
#include <QPixmap> #include <QPixmap>
#include <QPoint> #include <QPoint>
#include <QPushButton>
#include <QScrollBar>
#include <QSettings> #include <QSettings>
#include <QShowEvent> #include <QShowEvent>
#include <QSplitter> #include <QSplitter>
@ -114,9 +104,7 @@
#include <QStatusBar> #include <QStatusBar>
#include <QSvgRenderer> #include <QSvgRenderer>
#include <QtConcurrentRun> #include <QtConcurrentRun>
#include <QTime>
#include <QTimer> #include <QTimer>
#include <QToolBar>
#include <QUrl> #include <QUrl>
#include <QWindowStateChangeEvent> #include <QWindowStateChangeEvent>

View File

@ -29,7 +29,6 @@
#include "Buffer.h" #include "Buffer.h"
#include "BufferList.h" #include "BufferList.h"
#include "BufferParams.h" #include "BufferParams.h"
#include "BufferView.h"
#include "Converter.h" #include "Converter.h"
#include "Cursor.h" #include "Cursor.h"
#include "CutAndPaste.h" #include "CutAndPaste.h"

View File

@ -15,7 +15,6 @@
#include "InsetLayout.h" #include "InsetLayout.h"
#include "ColorSet.h" #include "ColorSet.h"
#include "Layout.h"
#include "Lexer.h" #include "Lexer.h"
#include "TextClass.h" #include "TextClass.h"

View File

@ -15,7 +15,6 @@
#include "Buffer.h" #include "Buffer.h"
#include "BufferParams.h" #include "BufferParams.h"
#include "BufferView.h" #include "BufferView.h"
#include "BufferParams.h"
#include "Cursor.h" #include "Cursor.h"
#include "Dimension.h" #include "Dimension.h"
#include "DispatchResult.h" #include "DispatchResult.h"

View File

@ -38,13 +38,11 @@
#include "frontends/alert.h" #include "frontends/alert.h"
#include "mathed/InsetMath.h" #include "mathed/InsetMath.h"
#include "mathed/InsetMathGrid.h"
#include "mathed/InsetMathHull.h" #include "mathed/InsetMathHull.h"
#include "mathed/MathData.h" #include "mathed/MathData.h"
#include "mathed/MathStream.h" #include "mathed/MathStream.h"
#include "mathed/MathSupport.h" #include "mathed/MathSupport.h"
#include "support/convert.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/docstream.h" #include "support/docstream.h"
#include "support/FileName.h" #include "support/FileName.h"

View File

@ -14,7 +14,6 @@
#include "MathData.h" #include "MathData.h"
#include "MathStream.h" #include "MathStream.h"
#include "MathStream.h"
#include "MetricsInfo.h" #include "MetricsInfo.h"

View File

@ -15,7 +15,6 @@
#include "LaTeXFeatures.h" #include "LaTeXFeatures.h"
#include "MathData.h" #include "MathData.h"
#include "MathStream.h" #include "MathStream.h"
#include "MathStream.h"
#include "InsetMathSymbol.h" #include "InsetMathSymbol.h"
#include "support/debug.h" #include "support/debug.h"

View File

@ -39,7 +39,6 @@
#include "InsetMathMacro.h" #include "InsetMathMacro.h"
#include "InsetMathMacroTemplate.h" #include "InsetMathMacroTemplate.h"
#include "MetricsInfo.h" #include "MetricsInfo.h"
#include "xml.h"
#include "Paragraph.h" #include "Paragraph.h"
#include "ParIterator.h" #include "ParIterator.h"
#include "xml.h" #include "xml.h"

View File

@ -22,7 +22,6 @@
#include "MathStream.h" #include "MathStream.h"
#include "MathParser.h" #include "MathParser.h"
#include "MathSupport.h" #include "MathSupport.h"
#include "InsetMathMacroArgument.h"
#include "Buffer.h" #include "Buffer.h"
#include "BufferView.h" #include "BufferView.h"

View File

@ -30,7 +30,6 @@
#include "InsetMathUnknown.h" #include "InsetMathUnknown.h"
#include "MathAutoCorrect.h" #include "MathAutoCorrect.h"
#include "MathCompletionList.h" #include "MathCompletionList.h"
#include "MathData.h"
#include "MathFactory.h" #include "MathFactory.h"
#include "InsetMathMacro.h" #include "InsetMathMacro.h"
#include "InsetMathMacroArgument.h" #include "InsetMathMacroArgument.h"

View File

@ -12,7 +12,6 @@
#include "InsetMathNumber.h" #include "InsetMathNumber.h"
#include "MathStream.h" #include "MathStream.h"
#include "MathStream.h"
#include "MathSupport.h" #include "MathSupport.h"
#include "MetricsInfo.h" #include "MetricsInfo.h"

View File

@ -14,7 +14,6 @@
#include "MathData.h" #include "MathData.h"
#include "MathStream.h" #include "MathStream.h"
#include "MathStream.h"
#include "MetricsInfo.h" #include "MetricsInfo.h"

View File

@ -16,7 +16,6 @@
#include "MathData.h" #include "MathData.h"
#include "MathStream.h" #include "MathStream.h"
#include "MathStream.h"
#include "MathSupport.h" #include "MathSupport.h"
#include "LaTeXFeatures.h" #include "LaTeXFeatures.h"

View File

@ -20,7 +20,6 @@
#include "InsetMathNest.h" #include "InsetMathNest.h"
#include "Buffer.h" #include "Buffer.h"
#include "DocIterator.h"
#include "InsetList.h" #include "InsetList.h"
#include "Text.h" #include "Text.h"

View File

@ -77,7 +77,6 @@ following hack as starting point to write some macros:
#include "support/convert.h" #include "support/convert.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/docstream.h" #include "support/docstream.h"
#include "support/unique_ptr.h"
#include <sstream> #include <sstream>

View File

@ -12,8 +12,6 @@
#include "MathRow.h" #include "MathRow.h"
#include "InsetMath.h"
#include "MathClass.h"
#include "MathData.h" #include "MathData.h"
#include "MathSupport.h" #include "MathSupport.h"

View File

@ -10,7 +10,8 @@
*/ */
#include <config.h> #include <config.h>
#include <lassert.h>
#include "support/lassert.h"
#include "support/convert.h" #include "support/convert.h"
#include "support/debug.h" #include "support/debug.h"
@ -21,13 +22,13 @@
#include <boost/assert.hpp> #include <boost/assert.hpp>
#include <QString>
#ifdef LYX_CALLSTACK_PRINTING #ifdef LYX_CALLSTACK_PRINTING
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <execinfo.h> #include <execinfo.h>
#include <cxxabi.h> #include <cxxabi.h>
#include <QString>
#endif #endif