Remove unused forward declarations

This commit is contained in:
Yuriy Skalko 2020-10-13 09:40:24 +03:00
parent 769578eac6
commit 2a594d3e90
52 changed files with 6 additions and 119 deletions

View File

@ -39,9 +39,6 @@ class FuncRequest;
class FuncStatus; class FuncStatus;
class Inset; class Inset;
class InsetLabel; class InsetLabel;
class InsetRef;
class Font;
class Format;
class Lexer; class Lexer;
class Text; class Text;
class LyXVC; class LyXVC;
@ -52,7 +49,6 @@ class MacroNameSet;
class MacroSet; class MacroSet;
class OutputParams; class OutputParams;
class otexstream; class otexstream;
class Paragraph;
class ParConstIterator; class ParConstIterator;
class ParIterator; class ParIterator;
class ParagraphList; class ParagraphList;

View File

@ -37,7 +37,6 @@ class CursorSlice;
class Dimension; class Dimension;
class DispatchResult; class DispatchResult;
class DocIterator; class DocIterator;
class DocumentClass;
class FuncRequest; class FuncRequest;
class FuncStatus; class FuncStatus;
class Intl; class Intl;
@ -45,10 +44,8 @@ class Inset;
class Length; class Length;
class MathData; class MathData;
class MathRow; class MathRow;
class ParIterator;
class ParagraphMetrics; class ParagraphMetrics;
class Point; class Point;
class Row;
class TexRow; class TexRow;
class Text; class Text;
class TextMetrics; class TextMetrics;

View File

@ -18,8 +18,6 @@
namespace lyx { namespace lyx {
class Buffer;
enum CiteEngineType { enum CiteEngineType {
ENGINE_TYPE_AUTHORYEAR = 1, ENGINE_TYPE_AUTHORYEAR = 1,

View File

@ -21,9 +21,7 @@
namespace lyx { namespace lyx {
class Inset; class Inset;
class Text;
class MathData; class MathData;
class Paragraph;
void lyxbreaker(void const * data, const char * hint, int size); void lyxbreaker(void const * data, const char * hint, int size);

View File

@ -25,7 +25,6 @@
namespace lyx { namespace lyx {
class DocumentClass;
class ErrorList; class ErrorList;
class InsetText; class InsetText;
class Cursor; class Cursor;

View File

@ -24,8 +24,6 @@
namespace lyx { namespace lyx {
class Layout;
/// Index into LayoutFileList. Basically a 'strong typedef'. /// Index into LayoutFileList. Basically a 'strong typedef'.
class LayoutFileIndex { class LayoutFileIndex {
public: public:

View File

@ -21,7 +21,6 @@ namespace lyx {
class Buffer; class Buffer;
class Inset; class Inset;
class Text;
class ParagraphList; class ParagraphList;

View File

@ -32,22 +32,16 @@ class AuthorList;
class Buffer; class Buffer;
class BufferParams; class BufferParams;
class Change; class Change;
class Counters;
class Cursor;
class CursorSlice;
class DocIterator; class DocIterator;
class docstring_list; class docstring_list;
class DocumentClass; class DocumentClass;
class Inset; class Inset;
class InsetBibitem;
class LaTeXFeatures; class LaTeXFeatures;
class InsetList; class InsetList;
class Language; class Language;
class Layout; class Layout;
class Font; class Font;
class MetricsInfo;
class OutputParams; class OutputParams;
class PainterInfo;
class ParagraphParameters; class ParagraphParameters;
class TocBackend; class TocBackend;
class WordLangTuple; class WordLangTuple;

View File

@ -32,14 +32,8 @@ namespace lyx {
*/ */
typedef std::vector<Row> RowList; typedef std::vector<Row> RowList;
class Buffer;
class BufferView; class BufferView;
class BufferParams;
class Font;
class Inset;
class Paragraph; class Paragraph;
class MetricsInfo;
class PainterInfo;
/// Helper class for paragraph metrics. /// Helper class for paragraph metrics.
class ParagraphMetrics { class ParagraphMetrics {

View File

@ -19,8 +19,6 @@ namespace lyx {
namespace support { class FileName; } namespace support { class FileName; }
class Buffer; class Buffer;
class DocIterator;
class ParIterator;
/** /**
* Checks and loads a LyX file \param filename. * Checks and loads a LyX file \param filename.

View File

@ -25,22 +25,15 @@
namespace lyx { namespace lyx {
class BufferView;
class Buffer; class Buffer;
class DispatchResult; class DispatchResult;
class docstring_list; class docstring_list;
class FuncRequest; class FuncRequest;
class FuncStatus; class FuncStatus;
class Inset; class Inset;
class Lexer;
struct RGBColor;
namespace frontend { namespace frontend {
class Clipboard;
class FontLoader;
class Selection;
/// The main application class /// The main application class
/** /**
There should be only one instance of this class. No Qt object There should be only one instance of this class. No Qt object

View File

@ -16,7 +16,6 @@
namespace lyx { namespace lyx {
class Buffer;
class DocIterator; class DocIterator;
class Inset; class Inset;

View File

@ -18,9 +18,6 @@
namespace lyx { namespace lyx {
class BufferView;
class KeySymbol;
namespace frontend { namespace frontend {
/** /**

View File

@ -29,7 +29,6 @@ class QFont;
namespace lyx { namespace lyx {
class BufferView;
class ColorCache; class ColorCache;
class KeySymbol; class KeySymbol;
@ -39,10 +38,11 @@ class FileName;
namespace frontend { namespace frontend {
class Clipboard;
class FontLoader;
class GuiView; class GuiView;
class GuiWorkArea;
class Menus; class Menus;
class SocketNotifier; class Selection;
class Toolbars; class Toolbars;
/// The Qt main application class /// The Qt main application class

View File

@ -31,8 +31,6 @@
namespace lyx { namespace lyx {
class BiblioInfo;
namespace frontend { namespace frontend {
class GuiSelectionManager; class GuiSelectionManager;

View File

@ -20,8 +20,6 @@
namespace lyx { namespace lyx {
class Buffer;
namespace frontend { namespace frontend {
class GuiWorkArea; class GuiWorkArea;

View File

@ -42,10 +42,8 @@
namespace lyx { namespace lyx {
class BufferParams;
class LayoutModuleList; class LayoutModuleList;
class LyXModule; class LyXModule;
class TextClass;
namespace support { namespace support {
class TempFile; class TempFile;

View File

@ -16,8 +16,6 @@
#include "ErrorList.h" #include "ErrorList.h"
#include "ui_ErrorListUi.h" #include "ui_ErrorListUi.h"
class QListWidgetItem;
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {

View File

@ -18,12 +18,8 @@
#include <vector> #include <vector>
class QListWidgetItem;
namespace lyx { namespace lyx {
class Format;
namespace frontend { namespace frontend {
class GuiLyXFiles : public GuiDialog, public Ui::LyXFilesUi class GuiLyXFiles : public GuiDialog, public Ui::LyXFilesUi

View File

@ -21,8 +21,6 @@
#include <QPainterPath> #include <QPainterPath>
#include <stack> #include <stack>
class QString;
namespace lyx { namespace lyx {
class FontInfo; class FontInfo;

View File

@ -50,10 +50,6 @@
namespace lyx { namespace lyx {
class Converters;
class Formats;
class Movers;
namespace frontend { namespace frontend {
class PrefModule; class PrefModule;

View File

@ -15,9 +15,7 @@
#include <QObject> #include <QObject>
class QAbstractItemModel; class QAbstractItemModel;
class QAbstractListModel;
class QModelIndex; class QModelIndex;
class QListView;
class QPushButton; class QPushButton;
class QVariant; class QVariant;
class QAbstractItemView; class QAbstractItemView;

View File

@ -22,8 +22,6 @@ class QListWidgetItem;
namespace lyx { namespace lyx {
class docstring_list;
namespace frontend { namespace frontend {
class SpellcheckerWidget : public QTabWidget class SpellcheckerWidget : public QTabWidget

View File

@ -20,7 +20,6 @@
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {
class TocModel;
class TocWidget; class TocWidget;
class GuiToc : public DockView class GuiToc : public DockView

View File

@ -26,17 +26,12 @@ class QSettings;
namespace lyx { namespace lyx {
class DocumentClass;
class Inset;
namespace frontend { namespace frontend {
class Action; class Action;
class GuiCommandBuffer; class GuiCommandBuffer;
class GuiLayoutFilterModel;
class GuiToolbar; class GuiToolbar;
class GuiView; class GuiView;
class LayoutBox;
class ToolbarInfo; class ToolbarInfo;
class ToolbarItem; class ToolbarItem;

View File

@ -22,14 +22,13 @@
#include <QTabBar> #include <QTabBar>
#include <QTabWidget> #include <QTabWidget>
class QDragEnterEvent;
class QDropEvent;
class QToolButton; class QToolButton;
class QWidget; class QWidget;
namespace lyx { namespace lyx {
class Buffer; class Buffer;
class BufferView;
class FuncRequest; class FuncRequest;
namespace frontend { namespace frontend {

View File

@ -22,8 +22,6 @@
namespace lyx { namespace lyx {
class Buffer;
namespace frontend { namespace frontend {
class GuiCompleter; class GuiCompleter;

View File

@ -22,9 +22,6 @@
namespace lyx { namespace lyx {
class DocumentClass;
class Inset;
namespace frontend { namespace frontend {
class GuiView; class GuiView;

View File

@ -16,8 +16,6 @@
#include <QFileDialog> #include <QFileDialog>
class QToolButton;
namespace lyx { namespace lyx {
class LyXFileDialog : public QFileDialog class LyXFileDialog : public QFileDialog

View File

@ -18,10 +18,7 @@
#include <QHash> #include <QHash>
#include <QWidget> #include <QWidget>
class QAbstractButton;
class QHideEvent; class QHideEvent;
class QLineEdit;
class QPushButton;
class QStackedWidget; class QStackedWidget;
class QTimer; class QTimer;
class QTreeWidget; class QTreeWidget;

View File

@ -19,7 +19,6 @@
namespace lyx { namespace lyx {
class Buffer;
class BufferView; class BufferView;
class DocIterator; class DocIterator;
class FuncRequest; class FuncRequest;

View File

@ -25,17 +25,13 @@
class QComboBox; class QComboBox;
class QLineEdit; class QLineEdit;
class QCheckBox;
class QString; class QString;
class QWidget; class QWidget;
template <class T> class QList;
namespace lyx { namespace lyx {
namespace support { class FileName; } namespace support { class FileName; }
class BufferParams;
namespace frontend { namespace frontend {
class LengthCombo; class LengthCombo;

View File

@ -40,7 +40,6 @@ namespace support { class FileName; }
namespace graphics { namespace graphics {
class Image; class Image;
class Converter;
/// A graphics::Cache item holder. /// A graphics::Cache item holder.
class CacheItem { class CacheItem {

View File

@ -22,7 +22,6 @@ class Dimension;
namespace graphics { namespace graphics {
class Cache;
class PreviewLoader; class PreviewLoader;
class Image; class Image;

View File

@ -27,8 +27,6 @@
namespace lyx { namespace lyx {
class Lexer;
namespace external { namespace external {
/* /*

View File

@ -31,7 +31,6 @@
namespace lyx { namespace lyx {
class BiblioInfo;
class Buffer; class Buffer;
class BufferView; class BufferView;
class Change; class Change;
@ -59,11 +58,9 @@ class MathAtom;
class MetricsInfo; class MetricsInfo;
class OutputParams; class OutputParams;
class PainterInfo; class PainterInfo;
class ParConstIterator;
class ParIterator; class ParIterator;
class Text; class Text;
class TocBackend; class TocBackend;
class TocList;
class XMLStream; class XMLStream;
class otexstream; class otexstream;

View File

@ -18,8 +18,6 @@
namespace lyx { namespace lyx {
class BiblioInfo;
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// //
// InsetBibItem // InsetBibItem

View File

@ -16,7 +16,6 @@
namespace lyx { namespace lyx {
class BiblioInfo;
class docstring_list; class docstring_list;
namespace support { namespace support {

View File

@ -20,6 +20,8 @@
namespace lyx { namespace lyx {
class InsetCaption;
class InsetCaptionable : public InsetCollapsible class InsetCaptionable : public InsetCollapsible
{ {
public: public:

View File

@ -27,8 +27,6 @@ class InsetLayout;
namespace support { class TempFile; } namespace support { class TempFile; }
namespace frontend { class Painter; }
/** A collapsible text inset /** A collapsible text inset
*/ */

View File

@ -26,8 +26,6 @@ namespace lyx {
versions of this inset. versions of this inset.
*/ */
class Language;
class InsetERT : public InsetCollapsible { class InsetERT : public InsetCollapsible {
public: public:
/// ///

View File

@ -22,7 +22,6 @@
namespace lyx { namespace lyx {
class BiblioInfo;
class Buffer; class Buffer;
class Dimension; class Dimension;
class InsetCommandParams; class InsetCommandParams;

View File

@ -17,8 +17,6 @@
namespace lyx { namespace lyx {
class Counter;
class InsetLabel : public InsetCommand class InsetLabel : public InsetCommand
{ {
public: public:

View File

@ -20,8 +20,6 @@
namespace lyx { namespace lyx {
class LaTeXFeatures;
class InsetLine : public InsetCommand class InsetLine : public InsetCommand
{ {
public: public:

View File

@ -44,7 +44,6 @@ class CursorSlice;
class FuncStatus; class FuncStatus;
class Lexer; class Lexer;
class OutputParams; class OutputParams;
class Paragraph;
class XMLStream; class XMLStream;

View File

@ -23,9 +23,6 @@ class CompletionList;
class CursorSlice; class CursorSlice;
class Dimension; class Dimension;
class ParagraphList; class ParagraphList;
class InsetCaption;
class InsetTabular;
class TocBuilder;
/** /**
A text inset is like a TeX box to write full text A text inset is like a TeX box to write full text

View File

@ -64,7 +64,6 @@ inclusion in the "real LyX insets" FormulaInset and FormulaMacroInset.
*/ */
class Cursor;
class OutputParams; class OutputParams;
class MetricsInfo; class MetricsInfo;

View File

@ -17,8 +17,6 @@
namespace lyx { namespace lyx {
class latexkeys;
/// Inset for end-of-line comments /// Inset for end-of-line comments
class InsetMathComment : public InsetMathNest { class InsetMathComment : public InsetMathNest {
public: public:

View File

@ -20,7 +20,6 @@
namespace lyx { namespace lyx {
class BufferParams;
class BufferView; class BufferView;
/** Gridded math inset base class. /** Gridded math inset base class.

View File

@ -26,7 +26,6 @@ namespace lyx {
class Buffer; class Buffer;
class MathData; class MathData;
class InsetMathMacroTemplate; class InsetMathMacroTemplate;
class Paragraph;
class latexkeys; class latexkeys;
enum MacroType { enum MacroType {

View File

@ -44,7 +44,6 @@ Andre'
namespace lyx { namespace lyx {
class Inset;
class InsetMath; class InsetMath;
class MathAtom { class MathAtom {

View File

@ -20,8 +20,6 @@
namespace lyx { namespace lyx {
namespace support { namespace support {
class Systemcall;
/** /**
* Outputs to the console terminal the line buffered standard output and * Outputs to the console terminal the line buffered standard output and
* error of a spawned process when there is a controlling terminal and * error of a spawned process when there is a controlling terminal and