]> git.lyx.org Git - lyx.git/commitdiff
Remove declaration of classes that do not exist
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 19 May 2016 09:47:26 +0000 (11:47 +0200)
committerRichard Heck <rgheck@lyx.org>
Sun, 29 May 2016 21:55:45 +0000 (17:55 -0400)
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

src/BufferParams.h
src/Paragraph.h
src/insets/RenderPreview.h
src/mathed/InsetMath.h

index caae01dfec15535e847429326491d15cfbc5e7df..f62911c2626b4ad5ca889556bf1872a619283131 100644 (file)
@@ -42,7 +42,6 @@ class Font;
 class HSpace;
 class IndicesList;
 class Language;
-class LatexFeatures;
 class LayoutFile;
 class LayoutFileIndex;
 class Lexer;
index 6f8d248ca0625e0019eb46c0ed7a0076252ff706..50516d77ae9f75eeba4aff6800a04a5a86b949dd 100644 (file)
@@ -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;
index cc7a4b6928d09cb1ecd88a92ecc65092a84bd633..83febb3bb981218ffe599bbe7cac644fb3ac1181 100644 (file)
@@ -28,7 +28,6 @@
 namespace lyx {
 
 class Buffer;
-class LyXRC_PreviewStatus;
 class MetricsInfo;
 class PainterInfo;
 
index deb6915e9acac587e8f493759bb986600122b3cf..b23ffb5179e1ef542352e49673ded594d5710a86 100644 (file)
@@ -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;