Skip to content

Commit 08d5407

Browse files
keshashahmpictor
authored andcommitted
Unused Variables Removed
1 parent 352fd6d commit 08d5407

File tree

11 files changed

+3
-34
lines changed

11 files changed

+3
-34
lines changed

src/cleditor/STEPfile.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,6 @@ Severity STEPfile::CreateScopeInstances( istream & in, SDAI_Application_instance
10051005
}
10061006

10071007
SDAI_Application_instance * STEPfile::CreateSubSuperInstance( istream & in, int fileid, ErrorDescriptor & e ) {
1008-
std::string tmpstr;
10091008
SDAI_Application_instance * obj = ENTITY_NULL;
10101009

10111010
char c;

src/clstepcore/STEPcomplex.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ void STEPcomplex::AddEntityPart( const char * name ) {
226226

227227
STEPcomplex * STEPcomplex::EntityPart( const char * name, const char * currSch ) {
228228
STEPcomplex * scomp = head;
229-
std::string s1, s2;
230229
while( scomp ) {
231230
if( scomp->eDesc ) {
232231
if( scomp->eDesc->CurrName( name, currSch ) ) {

src/express/express.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,6 @@ static void RENAMEresolve( Rename * r, Schema s ) {
720720

721721
#ifdef using_enum_items_is_a_pain
722722
static void RENAMEresolve_enum( Type t, Schema s ) {
723-
Dictionary d = TYPEget_enum_tags( t );
724723
DictionaryEntry de;
725724
Expression x;
726725

src/express/lexact.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ SCANprocess_string( const char * yytext ) {
404404

405405
int
406406
SCANprocess_encoded_string( const char * yytext ) {
407-
char * s, *d; /* source, destination */
407+
char * s; /* source */
408408
int count;
409409

410410
/* strip off quotes */

src/express/resolve.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,6 @@ void CASE_ITresolve( Case_Item item, Scope scope, Statement statement ) {
854854
void STMTresolve( Statement statement, Scope scope ) {
855855
//scope is always the function/procedure/rule from SCOPEresolve_expressions_statements();
856856
Scope proc;
857-
Logical eval;
858-
bool skipped = false;
859857

860858
if( !statement ) {
861859
return; /* could be null statement */

src/fedex_plus/classes.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ void ATTRprint_access_methods( CONST char * entnm, Variable a, FILE * file ) {
721721
Type t = VARget_type( a );
722722
Class_Of_Type class;
723723
char ctype [BUFSIZ]; /* type of data member */
724-
char return_type [BUFSIZ];
725724
char attrnm [BUFSIZ];
726725
char membernm[BUFSIZ];
727726
char funcnm [BUFSIZ]; /* name of member function */
@@ -1062,7 +1061,6 @@ void ENTITYnames_print( Entity entity, FILE * file, Schema schema ) {
10621061
void ENTITYhead_print( Entity entity, FILE * file, Schema schema ) {
10631062
char entnm [BUFSIZ];
10641063
Linked_List list;
1065-
int attr_count_tmp = attr_count;
10661064
Entity super = 0;
10671065

10681066
strncpy( entnm, ENTITYget_classname( entity ), BUFSIZ );
@@ -2077,7 +2075,6 @@ void print_typechain( FILES * files, const Type t, char * buf, Schema schema, co
20772075
void ENTITYincode_print( Entity entity, FILES * files, Schema schema ) {
20782076
#define entity_name ENTITYget_name(entity)
20792077
#define schema_name SCHEMAget_name(schema)
2080-
const char * cn = ENTITYget_classname( entity );
20812078
char attrnm [BUFSIZ];
20822079
char dict_attrnm [BUFSIZ];
20832080
const char * super_schema;
@@ -3336,8 +3333,6 @@ void TYPEprint_init( const Type type, FILES * files, Schema schema ) {
33363333
case bag_:
33373334
case set_:
33383335
case list_: {
3339-
const char * ctype = TYPEget_ctype( type );
3340-
33413336
if( isMultiDimAggregateType( type ) ) {
33423337
print_typechain( files, TYPEget_body( type )->base,
33433338
typename_buf, schema, type->symbol.name );

src/fedex_python/src/classes_python.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ ENTITYincode_print( Entity entity, FILE * file, Schema schema ) {
956956
void
957957
RULEPrint( Rule rule, FILES * files, Schema schema ) {
958958
char * n = RULEget_name( rule );
959-
char * param_name;
960959
fprintf( files->lib, "\n####################\n # RULE %s #\n####################\n", n );
961960
/* write function definition */
962961
fprintf( files->lib, "%s = Rule()\n", n );
@@ -1101,8 +1100,6 @@ STATEMENTPrint( Statement s, int indent_level, FILE * file ) {
11011100

11021101
void
11031102
CASEout( struct Case_Statement_ *c, int level, FILE * file ) {
1104-
int len = 0;
1105-
int max_indent;
11061103
int if_number = 0;
11071104
//fprintf(file, "for case in switch(");
11081105
//EXPRESSION_out( c->selector, 0 , file);
@@ -1694,9 +1691,7 @@ EXPRop_length( struct Op_Subexpression * oe ) {
16941691

16951692
void
16961693
WHEREPrint( Linked_List wheres, int level , FILE * file ) {
1697-
unsigned int max_indent = 0;
16981694
int where_rule_number = 0;
1699-
char * rule_name;
17001695

17011696
python_indent( file, level );
17021697

src/fedex_python/src/classes_wrapper_python.cc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,19 +319,11 @@ SCHEMAprint( Schema schema, FILES * files, Express model, void * complexCol,
319319
int suffix ) {
320320
char schnm[MAX_LEN], sufnm[MAX_LEN], fnm[MAX_LEN], *np;
321321
/* sufnm = schema name + suffix */
322-
FILE * libfile,
323-
//*incfile,
324-
//*schemafile = files->incall,
325-
// *schemainit = files->initall,
326-
*initfile
327-
// *createall = files->create
328-
;
322+
FILE * libfile;
329323
Rule r;
330324
Function f;
331325
Procedure p;
332326
DictionaryEntry de;
333-
char * tmpstr = 0;
334-
unsigned int tmpstr_size = 0;
335327
/********** create files based on name of schema ***********/
336328
/* return if failure */
337329
/* 1. header file */
@@ -447,13 +439,9 @@ getMCPrint( Express express, FILE * schema_h, FILE * schema_cc ) {
447439
******************************************************************/
448440
void
449441
EXPRESSPrint( Express express, ComplexCollect & col, FILES * files ) {
450-
char fnm [MAX_LEN], *np;
442+
char fnm [MAX_LEN];
451443
const char * schnm; /* schnm is really "express name" */
452444
FILE * libfile;
453-
//FILE * incfile;
454-
//FILE * schemafile = files -> incall;
455-
//FILE * schemainit = files -> initall;
456-
FILE * initfile;
457445
/* new */
458446
Schema schema;
459447
DictionaryEntry de;

src/test/scl2html/scl2html.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ main() {
223223
root << "<UL>" << endl;
224224

225225
const TypeDescriptor * type;
226-
std::string tmp;
227226
type = registry->NextType();
228227
root << "<! -- The following is a list of types, which are>\n";
229228
root << "<! -- cross-referenced from the entities.>\n";

src/test/tstatic/tstatic.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ int main() {
2323
// The SchemaInit() function is generated by fedex_plus... see
2424
// extern statement above.
2525

26-
Registry * registry = new Registry( SchemaInit );
27-
2826
// This test creates a bunch of different entities, puts values in them,
2927
// prints the values out, links them to an array of entities, and then
3028
// outputs all the enitities in STEP exchange format.

0 commit comments

Comments
 (0)