summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2013-02-04 20:10:02 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2013-02-04 20:10:02 +0000
commit9193b3ed77b54ac46bde5af1de148a9e014daa6e (patch)
tree4a8c51194f910bbaf3c6bf79ca284e6c6987d479
parent397409fbb1336690c99e77f4f23043626e495d98 (diff)
downloadswig-9193b3ed77b54ac46bde5af1de148a9e014daa6e.tar.gz
Remove unnecessary file/line setting in parser
-rw-r--r--Source/CParse/parser.y4
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y
index c93f44cd0..36adf5a09 100644
--- a/Source/CParse/parser.y
+++ b/Source/CParse/parser.y
@@ -1158,8 +1158,6 @@ static Node *nested_forward_declaration(const char *storage, const char *kind, S
if (sname) {
/* Add forward declaration of the nested type */
Node *n = new_node("classforward");
- Setfile(n, cparse_file);
- Setline(n, cparse_line);
Setattr(n, "kind", kind);
Setattr(n, "name", sname);
Setattr(n, "storage", storage);
@@ -3832,8 +3830,6 @@ cpp_forward_class_decl : storage_class cpptype idcolon SEMI {
$$ = 0;
} else {
$$ = new_node("classforward");
- Setfile($$,cparse_file);
- Setline($$,cparse_line);
Setattr($$,"kind",$2);
Setattr($$,"name",$3);
Setattr($$,"sym:weak", "1");