From: Jean-Marc Lasgouttes Date: Thu, 19 May 2016 09:47:26 +0000 (+0200) Subject: Remove declaration of classes that do not exist X-Git-Tag: 2.3.0alpha1~1643^2~26 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b6390569819a957c0f58b8d73ce9cdb94a9356df;p=lyx.git Remove declaration of classes that do not exist Some headers contain class Foo; whereas there is no class Foo. The list of class statements is given by classes=`git grep '^\(class\|struct\) [a-zA-Z_:]*;' src | sed 's/^.* \(.*\);/\1/'|sort -u` The ones that are useless are: for c in $classes ; do grep -r "\\<$c\\>" src| grep -vq '^[^:]*:\(class\|struct\) [a-zA-Z_:]*;' || echo "$c"; done --- diff --git a/src/BufferParams.h b/src/BufferParams.h index caae01dfec..f62911c262 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -42,7 +42,6 @@ class Font; class HSpace; class IndicesList; class Language; -class LatexFeatures; class LayoutFile; class LayoutFileIndex; class Lexer; diff --git a/src/Paragraph.h b/src/Paragraph.h index 6f8d248ca0..50516d77ae 100644 --- a/src/Paragraph.h +++ b/src/Paragraph.h @@ -39,12 +39,10 @@ class DocumentClass; class Inset; class InsetBibitem; class LaTeXFeatures; -class Inset_code; class InsetList; class Language; class Layout; class Font; -class Font_size; class MetricsInfo; class OutputParams; class PainterInfo; diff --git a/src/insets/RenderPreview.h b/src/insets/RenderPreview.h index cc7a4b6928..83febb3bb9 100644 --- a/src/insets/RenderPreview.h +++ b/src/insets/RenderPreview.h @@ -28,7 +28,6 @@ namespace lyx { class Buffer; -class LyXRC_PreviewStatus; class MetricsInfo; class PainterInfo; diff --git a/src/mathed/InsetMath.h b/src/mathed/InsetMath.h index deb6915e9a..b23ffb5179 100644 --- a/src/mathed/InsetMath.h +++ b/src/mathed/InsetMath.h @@ -85,11 +85,9 @@ class MaximaStream; class MathematicaStream; class MathStream; class WriteStream; -class InfoStream; class MathMacroTemplate; class MathMacro; -class MathPosFinder; class Cursor; class TextPainter; class TextMetricsInfo;