aboutsummaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorVladimir Kalinin <vkalinin@opendesign.com>2013-12-17 12:14:33 +0400
committerVladimir Kalinin <vkalinin@opendesign.com>2013-12-17 12:14:33 +0400
commit25689857eb7ae8d1027dc8550686005807ed0641 (patch)
treea597af60b682bc35428347672c0333615501bb2b /Source
parent1dca0af0241475c11a842e4dd4c16ff7b367a962 (diff)
downloadswig-25689857eb7ae8d1027dc8550686005807ed0641.tar.gz
Language::addSymbol fix, to handle classes correctly
Diffstat (limited to 'Source')
-rw-r--r--Source/Modules/lang.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx
index 78c37dbb9..be83b5069 100644
--- a/Source/Modules/lang.cxx
+++ b/Source/Modules/lang.cxx
@@ -3049,12 +3049,6 @@ int Language::addSymbol(const String *s, const Node *n, const_String_or_char_ptr
// New scope which has not been added by the target language - lazily created.
symbols = NewHash();
Setattr(symtabs, scope, symbols);
-
- // Add the new scope as a symbol in the top level scope.
- // Alternatively the target language must add it in before attempting to add symbols into the scope.
- const_String_or_char_ptr top_scope = "";
- Hash *topscope_symbols = Getattr(symtabs, top_scope);
- Setattr(topscope_symbols, scope, NewHash());
} else {
Node *c = Getattr(symbols, s);
if (c && (c != n)) {