summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-17 15:59:38 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-17 16:02:32 +0100
commit2865b7cddb8a0d6a5f8ecaed7a6f078dd300e8c8 (patch)
treed81fa84909bbfc8cbb8eead31ba55a32ea992408 /src/bin/eolian_mono/eolian/mono/klass.hh
parent5e7bc44d34ce9a0141c44fd2b41e77582b7ac555 (diff)
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
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh12
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 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
455 std::string native_inherit_full_name = name_helpers::klass_full_native_inherit_name(cls); 455 std::string native_inherit_full_name = name_helpers::klass_full_native_inherit_name(cls);
456 auto inherit_name = name_helpers::klass_concrete_name(cls); 456 auto inherit_name = name_helpers::klass_concrete_name(cls);
457 457
458 // The klass field is static but there is no problem if multiple C# classes inherit from this generated one
459 // as it is just a simple wrapper, forwarding the Eo calls either to the user API (where C#'s virtual method
460 // resolution kicks in) or to the base implementation (efl_super).
461 if (is_inherit)
462 {
463 if(!as_generator(
464 scope_tab << "public " << (root ? "" : "new ") << "static System.IntPtr klass = System.IntPtr.Zero;\n"
465 << scope_tab << "public " << (root ? "" : "new ") << "static " << native_inherit_full_name << " nativeInherit = new " << native_inherit_full_name << "();\n"
466 ).generate(sink, attributes::unused, context))
467 return false;
468 }
469
470 std::string raw_klass_modifier; 458 std::string raw_klass_modifier;
471 if (!root) 459 if (!root)
472 raw_klass_modifier = "override "; 460 raw_klass_modifier = "override ";