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
This commit is contained in:
Jean-Marc Lasgouttes 2016-05-19 11:47:26 +02:00 committed by Richard Heck
parent 7628f0bf97
commit b639056981
4 changed files with 0 additions and 6 deletions

View File

@ -42,7 +42,6 @@ class Font;
class HSpace; class HSpace;
class IndicesList; class IndicesList;
class Language; class Language;
class LatexFeatures;
class LayoutFile; class LayoutFile;
class LayoutFileIndex; class LayoutFileIndex;
class Lexer; class Lexer;

View File

@ -39,12 +39,10 @@ class DocumentClass;
class Inset; class Inset;
class InsetBibitem; class InsetBibitem;
class LaTeXFeatures; class LaTeXFeatures;
class Inset_code;
class InsetList; class InsetList;
class Language; class Language;
class Layout; class Layout;
class Font; class Font;
class Font_size;
class MetricsInfo; class MetricsInfo;
class OutputParams; class OutputParams;
class PainterInfo; class PainterInfo;

View File

@ -28,7 +28,6 @@
namespace lyx { namespace lyx {
class Buffer; class Buffer;
class LyXRC_PreviewStatus;
class MetricsInfo; class MetricsInfo;
class PainterInfo; class PainterInfo;

View File

@ -85,11 +85,9 @@ class MaximaStream;
class MathematicaStream; class MathematicaStream;
class MathStream; class MathStream;
class WriteStream; class WriteStream;
class InfoStream;
class MathMacroTemplate; class MathMacroTemplate;
class MathMacro; class MathMacro;
class MathPosFinder;
class Cursor; class Cursor;
class TextPainter; class TextPainter;
class TextMetricsInfo; class TextMetricsInfo;