summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-07 17:03:52 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-07 17:08:20 -0300
commit00fdbb340f3d21f0bcd67a4b6b24c04f9a77d474 (patch)
tree457db4893ad159d3a940db8967d1aaacec0e3519
parent0b7cd8d88ec2192b60c830a5d0d2bd89fd859c84 (diff)
efl_csharp: remove warnings caused by unused or unnecessary code
Reviewers: lauromoura, segfaultxavi, cedric Reviewed By: lauromoura Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8234
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh5
-rw-r--r--src/bindings/mono/eina_mono/eina_inarray.cs1
-rw-r--r--src/bindings/mono/eo_mono/FunctionWrapper.cs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 199dd8c..0689648 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -349,7 +349,7 @@ struct klass
349 349
350 // Copied from nativeinherit class, used when setting up providers. 350 // Copied from nativeinherit class, used when setting up providers.
351 if(!as_generator( 351 if(!as_generator(
352 scope_tab << "private static " << (root ? "" : "new ") << " IntPtr GetEflClassStatic()\n" 352 scope_tab << "private static IntPtr GetEflClassStatic()\n"
353 << scope_tab << "{\n" 353 << scope_tab << "{\n"
354 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n" 354 << scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n"
355 << scope_tab << "}\n" 355 << scope_tab << "}\n"
@@ -481,8 +481,7 @@ struct klass
481 if (is_inherit) 481 if (is_inherit)
482 { 482 {
483 if (!as_generator( 483 if (!as_generator(
484 scope_tab << "private static readonly object klassAllocLock = new object();\n" 484 scope_tab << "protected bool inherited;\n"
485 << scope_tab << "protected bool inherited;\n"
486 ).generate(sink, attributes::unused, context)) 485 ).generate(sink, attributes::unused, context))
487 return false; 486 return false;
488 } 487 }
diff --git a/src/bindings/mono/eina_mono/eina_inarray.cs b/src/bindings/mono/eina_mono/eina_inarray.cs
index 47a1336..a99acc8 100644
--- a/src/bindings/mono/eina_mono/eina_inarray.cs
+++ b/src/bindings/mono/eina_mono/eina_inarray.cs
@@ -226,7 +226,6 @@ public class Inarray<T> : IEnumerable<T>, IDisposable
226 public T Nth(uint idx) 226 public T Nth(uint idx)
227 { 227 {
228 IntPtr ele = eina_inarray_nth(Handle, idx); 228 IntPtr ele = eina_inarray_nth(Handle, idx);
229 IntPtr v = Marshal.ReadIntPtr(ele);
230 return NativeToManagedInplace<T>(ele); 229 return NativeToManagedInplace<T>(ele);
231 } 230 }
232 231
diff --git a/src/bindings/mono/eo_mono/FunctionWrapper.cs b/src/bindings/mono/eo_mono/FunctionWrapper.cs
index 448403a..03e8138 100644
--- a/src/bindings/mono/eo_mono/FunctionWrapper.cs
+++ b/src/bindings/mono/eo_mono/FunctionWrapper.cs
@@ -25,7 +25,9 @@ public partial class FunctionInterop
25public class FunctionWrapper<T> 25public class FunctionWrapper<T>
26{ 26{
27 private Lazy<FunctionLoadResult<T>> loadResult; 27 private Lazy<FunctionLoadResult<T>> loadResult;
28#pragma warning disable 0414
28 private NativeModule module; // so it doesn't get unloaded 29 private NativeModule module; // so it doesn't get unloaded
30#pragma warning restore 0414
29 31
30 private static FunctionLoadResult<T> LazyInitialization(NativeModule module, string functionName) 32 private static FunctionLoadResult<T> LazyInitialization(NativeModule module, string functionName)
31 { 33 {