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 "ParagraphParameters.h"
#include "SpellChecker.h"
#include "xml.h"
#include "texstream.h"
#include "TextClass.h"
#include "TexRow.h"
#include "Text.h"
#include "WordLangTuple.h"
@ -58,13 +56,10 @@
#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>

View File

@ -23,18 +23,11 @@
#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>

View 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"

View File

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

View 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"

View File

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

View File

@ -19,15 +19,12 @@
#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"

View 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"

View File

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

View 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"

View File

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

View File

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

View 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"

View 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"

View File

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

View 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>
@ -105,8 +97,6 @@
#include <QPainter>
#include <QPixmap>
#include <QPoint>
#include <QPushButton>
#include <QScrollBar>
#include <QSettings>
#include <QShowEvent>
#include <QSplitter>
@ -114,9 +104,7 @@
#include <QStatusBar>
#include <QSvgRenderer>
#include <QtConcurrentRun>
#include <QTime>
#include <QTimer>
#include <QToolBar>
#include <QUrl>
#include <QWindowStateChangeEvent>

View 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"

View File

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

View 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"

View File

@ -38,13 +38,11 @@
#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"

View File

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

View File

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

View 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"

View File

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

View 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"

View File

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

View File

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

View File

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

View File

@ -20,7 +20,6 @@
#include "InsetMathNest.h"
#include "Buffer.h"
#include "DocIterator.h"
#include "InsetList.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/debug.h"
#include "support/docstream.h"
#include "support/unique_ptr.h"
#include <sstream>

View File

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

View File

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