[brlcad-commits] SF.net SVN: brlcad:[50171] brlcad/trunk/src/other/step/src
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <n_...@us...> - 2012-04-18 16:29:46
|
Revision: 50171 http://brlcad.svn.sourceforge.net/brlcad/?rev=50171&view=rev Author: n_reed Date: 2012-04-18 16:29:33 +0000 (Wed, 18 Apr 2012) Log Message: ----------- remove unused variables and functions identified in SCL git 8ce79ec, 73cc97f, e98d00f, 63295f1, and 2a0ee4e Modified Paths: -------------- brlcad/trunk/src/other/step/src/clprobe-ui/stepenteditor.cc brlcad/trunk/src/other/step/src/clstepcore/STEPaggregate.cc brlcad/trunk/src/other/step/src/express/expparse.y brlcad/trunk/src/other/step/src/express/expscan.l brlcad/trunk/src/other/step/src/express/resolve.c brlcad/trunk/src/other/step/src/fedex_plus/classes.c brlcad/trunk/src/other/step/src/fedex_plus/fedex_main.c Modified: brlcad/trunk/src/other/step/src/clprobe-ui/stepenteditor.cc =================================================================== --- brlcad/trunk/src/other/step/src/clprobe-ui/stepenteditor.cc 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/clprobe-ui/stepenteditor.cc 2012-04-18 16:29:33 UTC (rev 50171) @@ -1970,7 +1970,6 @@ CheckButtons(); } #ifdef firstWaySEEUpdate - int buttonValue; seeAttrRow * ptr; SubordinateInfo * si = 0; @@ -2016,7 +2015,6 @@ } #endif #ifdef secondWaySEEUpdate - int buttonValue; seeAttrRow * ptr; Event e; Modified: brlcad/trunk/src/other/step/src/clstepcore/STEPaggregate.cc =================================================================== --- brlcad/trunk/src/other/step/src/clstepcore/STEPaggregate.cc 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/clstepcore/STEPaggregate.cc 2012-04-18 16:29:33 UTC (rev 50171) @@ -24,7 +24,6 @@ #define STRING_DELIM '\'' -static char rcsid[] = "$Id: STEPaggregate.cc,v 3.0.1.7 1997/11/05 21:59:28 sauderd DP3.1 $"; /****************************************************************** ** Functions for manipulating aggregate attributes Modified: brlcad/trunk/src/other/step/src/express/expparse.y =================================================================== --- brlcad/trunk/src/other/step/src/express/expparse.y 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/express/expparse.y 2012-04-18 16:29:33 UTC (rev 50171) @@ -128,10 +128,8 @@ int yylineno; - static int PARSEchunk_start; static void yyerror(const char*, char *string); - static void yyerror2(const char*, char CONST *t); bool yyeof = false; @@ -2482,42 +2480,4 @@ ERRORreport_with_symbol(ERROR_syntax, &sym, buf, CURRENT_SCOPE_TYPE_PRINTABLE, CURRENT_SCOPE_NAME); } - -static void -yyerror2(const char *yytext, char CONST *t) /* token or 0 to indicate no more tokens */ -{ - char buf[200]; - Symbol sym; - static int first = 1; /* true if first suggested replacement */ - static char tokens[4000] = "";/* error message, saying */ - /* "expecting <token types>" */ - - if (t) { /* subsequent token? */ - if (first) { - first = 0; - } else { - strcat (tokens, " or "); - } - strcat(tokens, t); - } else { - strcpy(buf, "syntax error"); - if (yyeof) { - strcat(buf, " at end of input"); - } else if (yytext[0] == 0) { - strcat(buf, " at null character"); - } else if (yytext[0] < 040 || yytext[0] >= 0177) { - sprintf(buf + strlen(buf), " near character 0%o", yytext[0]); - } else { - sprintf(buf + strlen(buf), " near `%s'", yytext); - } - - if (0 == strlen(tokens)) { - yyerror(yytext, "syntax error"); - } - sym.line = yylineno - (yytext[0] == '\n'); - sym.filename = current_filename; - ERRORreport_with_symbol(ERROR_syntax_expecting, &sym, buf, tokens, - CURRENT_SCOPE_TYPE_PRINTABLE, CURRENT_SCOPE_NAME); - } } -} Modified: brlcad/trunk/src/other/step/src/express/expscan.l =================================================================== --- brlcad/trunk/src/other/step/src/express/expscan.l 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/express/expscan.l 2012-04-18 16:29:33 UTC (rev 50171) @@ -175,7 +175,6 @@ /* added for re-initializing parser -snc 22-Apr-1992 */ void SCAN_lex_init(char *filename, FILE *fp) { - int i; /* return to initial scan buffer */ SCAN_current_buffer = 0; Modified: brlcad/trunk/src/other/step/src/express/resolve.c =================================================================== --- brlcad/trunk/src/other/step/src/express/resolve.c 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/express/resolve.c 2012-04-18 16:29:33 UTC (rev 50171) @@ -1,4 +1,3 @@ -static char rcsid[] = "$Id: resolve.c,v 1.14 1997/01/21 19:19:51 dar Exp $"; /* * This software was developed by U.S. Government employees as part of @@ -1701,15 +1700,6 @@ } } - static Type - TAGget_type( struct tag * tags, char * name ) { - while( 1 ) { - if( streq( tags->name, name ) ) { - return( tags->type ); - } - } - } - /* should only be called on types known to be tagged! */ static char * TYPEget_tagname( Type type ) { Modified: brlcad/trunk/src/other/step/src/fedex_plus/classes.c =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/classes.c 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/fedex_plus/classes.c 2012-04-18 16:29:33 UTC (rev 50171) @@ -20,7 +20,6 @@ *** classes, TYPEs, and TypeDescriptors. *** ** **/ -static char rcsid[] = "$Id: classes.c,v 3.0.1.11 1997/09/18 21:14:46 sauderd Exp sauderd"; /* this is used to add new dictionary calls */ /* #define NEWDICT */ @@ -694,7 +693,6 @@ Type t = VARget_type( a ); char ctype [BUFSIZ]; char funcnm [BUFSIZ]; - Class_Of_Type class = TYPEget_type( t ); generate_attribute_func_name( a, funcnm ); @@ -707,11 +705,6 @@ void AGGRprint_access_methods( CONST char * entnm, Variable a, FILE * file, Type t, char * ctype, char * attrnm ) { - char aggrnode_name [BUFSIZ]; - Type bt; - Class_Of_Type class = TYPEget_type( t ); - char nm [BUFSIZ]; - ATTRprint_access_methods_get_head( entnm, a, file ); fprintf( file, "{\n" ); fprintf( file, " return (%s) &_%s; \n}\n", ctype, attrnm ); @@ -1532,7 +1525,6 @@ const char * entnm = ENTITYget_classname( entity ); int count = attr_count; - int index = 0; int first = 1; /* constructor definition */ Modified: brlcad/trunk/src/other/step/src/fedex_plus/fedex_main.c =================================================================== --- brlcad/trunk/src/other/step/src/fedex_plus/fedex_main.c 2012-04-18 15:09:10 UTC (rev 50170) +++ brlcad/trunk/src/other/step/src/fedex_plus/fedex_main.c 2012-04-18 16:29:33 UTC (rev 50171) @@ -1,4 +1,3 @@ -static char rcsid[] = "$Id: fedex_main.c,v 3.0.1.3 1997/11/05 23:12:18 sauderd DP3.1 $"; /************************************************************************ ** Driver for Fed-X Express parser. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |