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
This commit is contained in:
Vitor Sousa 2019-03-07 17:03:52 -03:00
parent 0b7cd8d88e
commit 00fdbb340f
3 changed files with 4 additions and 4 deletions

View File

@ -349,7 +349,7 @@ struct klass
// Copied from nativeinherit class, used when setting up providers.
if(!as_generator(
scope_tab << "private static " << (root ? "" : "new ") << " IntPtr GetEflClassStatic()\n"
scope_tab << "private static IntPtr GetEflClassStatic()\n"
<< scope_tab << "{\n"
<< scope_tab << scope_tab << "return " << name_helpers::klass_get_full_name(cls) << "();\n"
<< scope_tab << "}\n"
@ -481,8 +481,7 @@ struct klass
if (is_inherit)
{
if (!as_generator(
scope_tab << "private static readonly object klassAllocLock = new object();\n"
<< scope_tab << "protected bool inherited;\n"
scope_tab << "protected bool inherited;\n"
).generate(sink, attributes::unused, context))
return false;
}

View File

@ -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);
}

View File

@ -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)
{