diff options
author | Olly Betts <olly@survex.com> | 2021-03-31 05:02:13 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-03-31 05:02:13 +1300 |
commit | d24e09c57d0b3133b811192a96ca57b1f73a66e7 (patch) | |
tree | a338a05aaeb63f67c465b4bdb449c5fb20f08002 /Source | |
parent | 904f5a65d87ee549635b7bc973e471ef98f2bd35 (diff) | |
download | swig-d24e09c57d0b3133b811192a96ca57b1f73a66e7.tar.gz |
Remove now-unused variables and code to set them
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/php.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 4cb1e2c1f..d450fc939 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -36,8 +36,6 @@ static String *module = 0; static String *cap_module = 0; static String *prefix = 0; -static String *shadow_classname = 0; - static File *f_begin = 0; static File *f_runtime = 0; static File *f_runtime_h = 0; @@ -81,10 +79,6 @@ static String *magic_isset = NULL; static Hash *arginfo_used; /* Variables for using PHP classes */ -static Node *current_class = 0; - -static Hash *shadow_get_vars; -static Hash *shadow_set_vars; static Hash *zend_types = 0; static int shadow = 1; @@ -1584,12 +1578,8 @@ public: const char *p = Char(iname); if (strlen(p) > 4) { p += strlen(p) - 4; - String *varname = Getattr(n, "membervariableHandler:sym:name"); if (strcmp(p, "_get") == 0) { magic_method_setter(n, false, NULL); - Setattr(shadow_get_vars, varname, Getattr(n, "type")); - } else if (strcmp(p, "_set") == 0) { - Setattr(shadow_set_vars, varname, iname); } } return SWIG_OK; @@ -2354,7 +2344,6 @@ public: * ------------------------------------------------------------ */ virtual int classHandler(Node *n) { - current_class = n; String *symname = Getattr(n, "sym:name"); String *baseClassExtend = NULL; bool exceptionClassFlag = false; @@ -2385,10 +2374,6 @@ public: if (!addSymbol(rename, n)) return SWIG_ERROR; - shadow_classname = NewString(rename); - - shadow_get_vars = NewHash(); - shadow_set_vars = NewHash(); /* Deal with inheritance */ List *baselist = Getattr(n, "bases"); |