summaryrefslogtreecommitdiff
path: root/src/bindings
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 /src/bindings
parent0b7cd8d88ec2192b60c830a5d0d2bd89fd859c84 (diff)
downloadefl-00fdbb340f3d21f0bcd67a4b6b24c04f9a77d474.tar.gz
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
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/mono/eina_mono/eina_inarray.cs1
-rw-r--r--src/bindings/mono/eo_mono/FunctionWrapper.cs2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/mono/eina_mono/eina_inarray.cs b/src/bindings/mono/eina_mono/eina_inarray.cs
index 47a1336b98..a99acc8371 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
public T Nth(uint idx)
{
IntPtr ele = eina_inarray_nth(Handle, idx);
- IntPtr v = Marshal.ReadIntPtr(ele);
return NativeToManagedInplace<T>(ele);
}
diff --git a/src/bindings/mono/eo_mono/FunctionWrapper.cs b/src/bindings/mono/eo_mono/FunctionWrapper.cs
index 448403a899..03e81383bb 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
public class FunctionWrapper<T>
{
private Lazy<FunctionLoadResult<T>> loadResult;
+#pragma warning disable 0414
private NativeModule module; // so it doesn't get unloaded
+#pragma warning restore 0414
private static FunctionLoadResult<T> LazyInitialization(NativeModule module, string functionName)
{