Skip to content

Commit 22ad90b

Browse files
author
Nicholas Reed
committed
remove unused variables as seen in SCL git 1492641 and 2b31086
1 parent 73cef38 commit 22ad90b

6 files changed

Lines changed: 1 addition & 13 deletions

File tree

src/cleditor/STEPfile.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,6 @@ STEPfile::AppendFile( istream * in, int useTechCor ) {
16611661

16621662
SetFileIdIncrement();
16631663
int total_insts = 0, valid_insts = 0;
1664-
int exchange_file = -1;
16651664

16661665
ReadTokenSeparator( *in );
16671666
std::string keywd = GetKeyword( *in, "; #", _error );
@@ -1671,18 +1670,15 @@ STEPfile::AppendFile( istream * in, int useTechCor ) {
16711670

16721671
if( !strncmp( const_cast<char *>( keywd.c_str() ), "ISO-10303-21",
16731672
strlen( const_cast<char *>( keywd.c_str() ) ) ) ) {
1674-
exchange_file = 1;
16751673
SetFileType( VERSION_CURRENT );
16761674
} else if( !strncmp( const_cast<char *>( keywd.c_str() ), "STEP",
16771675
strlen( const_cast<char *>( keywd.c_str() ) ) ) ) {
16781676
_error.AppendToUserMsg( "Reading Old Version of exchange file.\n" );
16791677
_error.GreaterSeverity( SEVERITY_USERMSG );
16801678

1681-
exchange_file = 1;
16821679
SetFileType( VERSION_OLD );
16831680
} else if( !strncmp( const_cast<char *>( keywd.c_str() ), "STEP_WORKING_SESSION",
16841681
strlen( const_cast<char *>( keywd.c_str() ) ) ) ) {
1685-
exchange_file = 0;
16861682
if( _fileType != WORKING_SESSION ) {
16871683
_error.AppendToUserMsg(
16881684
"Warning: Reading in file as Working Session file.\n" );

src/express/expr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ EXPresolve_op_dot( Expression expr, Scope scope ) {
298298

299299
/* stuff for dealing with select_ */
300300
int options = 0;
301-
Variable tmp;
302301
char dt;
303302
struct Symbol_ *where = NULL;
304303

@@ -493,7 +492,6 @@ EXPresolve_op_group( Expression expr, Scope scope ) {
493492

494493
/* stuff for dealing with select_ */
495494
int options = 0;
496-
char dt;
497495

498496
/* op1 is entity expression, op2 is entity */
499497
/* could be very impossible to determine except */

src/express/express.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,6 @@ EXPRESSfind_schema( Dictionary modeldict, char * name ) {
849849
static void
850850
connect_lists( Dictionary modeldict, Schema schema, Linked_List list ) {
851851
Rename * r;
852-
Schema ref_schema;
853852

854853
/* translate symbols to schemas */
855854
LISTdo_links( list, l )
@@ -899,8 +898,7 @@ EXPRESSresolve( Express model ) {
899898
/* comes first - DEL */
900899

901900
Schema schema;
902-
DictionaryEntry de, fg; /* imaginative, eh? */
903-
Rename * r;
901+
DictionaryEntry de;
904902

905903
jmp_buf env;
906904
if( setjmp( env ) ) {

src/express/resolve.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,6 @@ void ENTITYresolve_types( Entity e );
12851285
void
12861286
SCOPEresolve_types( Scope s ) {
12871287
Variable var;
1288-
Type type;
12891288
DictionaryEntry de;
12901289
Generic x;
12911290

src/express/type.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ TYPEget_size( Type type ) {
442442
Class class;
443443
int size;
444444
Expression upper;
445-
Linked_List list;
446445
Error experrc;
447446

448447
class = OBJget_class( type );

src/express/variable.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ VARinitialize() {
117117
/* for example, if var is named SELF\xxx.yyy, return yyy */
118118
extern char *
119119
VARget_simple_name( Variable v ) {
120-
char tmp;
121-
122120
Expression e = VARget_name( v );
123121

124122
while( TYPEis_expression( EXPget_type( e ) ) ) {

0 commit comments

Comments
 (0)