From: Lauro Moura Date: Sun, 17 Mar 2019 14:59:38 +0000 (+0100) Subject: cshar: Remove unused variables. X-Git-Tag: submit/tizen/20190402.051338~175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b738ddc805d3eb245fc09772cf6b87dbbbb7d58;p=platform%2Fupstream%2Fefl.git 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 Reviewed By: segfaultxavi, vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7702 Differential Revision: https://phab.enlightenment.org/D8368 --- diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh index 66d450c..9afb6aa 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 ";