cshar: Remove unused variables.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Sun, 17 Mar 2019 14:59:38 +0000 (15:59 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
Summary:
The nativeInherit field was replaced by using a C# attribute to declare
the native class.

Ref T7702

Reviewers: segfaultxavi, vitor.sousa

Reviewed By: segfaultxavi, vitor.sousa

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7702

Differential Revision: https://phab.enlightenment.org/D8368

src/bin/eolian_mono/eolian/mono/klass.hh

index 66d450c..9afb6aa 100644 (file)
@@ -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 ";