Skip to content

Commit 48ed46f

Browse files
committed
eliminate unused functions LISTremove, TYPEget_tagname
1 parent 1a6fd8c commit 48ed46f

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

include/express/linklist.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ extern SC_EXPRESS_EXPORT Generic LISTadd_last PROTO( ( Linked_List, Generic ) )
134134
extern SC_EXPRESS_EXPORT Generic LISTadd_after PROTO( ( Linked_List, Link, Generic ) );
135135
extern SC_EXPRESS_EXPORT Generic LISTadd_before PROTO( ( Linked_List, Link, Generic ) );
136136
extern SC_EXPRESS_EXPORT Generic LISTremove_first PROTO( ( Linked_List ) );
137-
extern SC_EXPRESS_EXPORT Generic LISTremove PROTO( ( Linked_List, Link ) );
138137
extern SC_EXPRESS_EXPORT Generic LISTget_first PROTO( ( Linked_List ) );
139138
extern SC_EXPRESS_EXPORT Generic LISTget_second PROTO( ( Linked_List ) );
140139
extern SC_EXPRESS_EXPORT Generic LISTget_nth PROTO( ( Linked_List, int ) );

src/express/linklist.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,6 @@ Generic LISTremove_first( Linked_List list ) {
134134
return item;
135135
}
136136

137-
/* 1st arg is historical and can be removed */
138-
Generic LISTremove( Linked_List list, Link link ) {
139-
Generic item;
140-
141-
link->next->prev = link->prev;
142-
link->prev->next = link->next;
143-
item = link->data;
144-
LINK_destroy( link );
145-
return item;
146-
}
147-
148137
Generic LISTget_first( Linked_List list ) {
149138
Link node;
150139
Generic item;

src/express/resolve.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,17 +1486,6 @@ static int WHEREresolve( Linked_List list, Scope scope, int need_self ) {
14861486
}
14871487
}
14881488

1489-
/* should only be called on types known to be tagged! */
1490-
static char * TYPEget_tagname( Type type ) {
1491-
for( ; type; type = type->u.type->body->base ) {
1492-
if( type->u.type->body->tag ) {
1493-
return type->u.type->body->tag->symbol.name;
1494-
}
1495-
}
1496-
/* can't happen */
1497-
return 0;
1498-
}
1499-
15001489
struct tag * TAGcreate_tags() {
15011490
extern int tag_count;
15021491

0 commit comments

Comments
 (0)