diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-03-14 16:46:05 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-03-15 18:11:02 -0300 |
commit | 75891ca1992ffa03e4c2b580546f86eb9e3d89b6 (patch) | |
tree | d81fa84909bbfc8cbb8eead31ba55a32ea992408 | |
parent | 5e7bc44d34ce9a0141c44fd2b41e77582b7ac555 (diff) | |
download | efl-75891ca1992ffa03e4c2b580546f86eb9e3d89b6.tar.gz |
cshar: Remove unused variables.
Summary:
The nativeInherit field was replaced by using a C# attribute to declare
the native class.
Ref T7702
Reviewers: segfaultxavi, vitor.sousa
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7702
Differential Revision: https://phab.enlightenment.org/D8368
-rw-r--r-- | src/bin/eolian_mono/eolian/mono/klass.hh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh index 66d450c5f5..9afb6aa458 100644 --- a/src/bin/eolian_mono/eolian/mono/klass.hh +++ b/src/bin/eolian_mono/eolian/mono/klass.hh @@ -455,18 +455,6 @@ struct klass std::string native_inherit_full_name = name_helpers::klass_full_native_inherit_name(cls); auto inherit_name = name_helpers::klass_concrete_name(cls); - // The klass field is static but there is no problem if multiple C# classes inherit from this generated one - // as it is just a simple wrapper, forwarding the Eo calls either to the user API (where C#'s virtual method - // resolution kicks in) or to the base implementation (efl_super). - if (is_inherit) - { - if(!as_generator( - scope_tab << "public " << (root ? "" : "new ") << "static System.IntPtr klass = System.IntPtr.Zero;\n" - << scope_tab << "public " << (root ? "" : "new ") << "static " << native_inherit_full_name << " nativeInherit = new " << native_inherit_full_name << "();\n" - ).generate(sink, attributes::unused, context)) - return false; - } - std::string raw_klass_modifier; if (!root) raw_klass_modifier = "override "; |