efl_mono: remove unnecessary external function import
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 25 Mar 2019 09:58:03 +0000 (18:58 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
ecore_init, ecore_shutdown, elm_init, elm_policy_set, elm_shutdown,
elm_exit are imported in efl_all.cs.
Moreover, efl_csharp_application.cs is using Efl.UnsafeNativeMethods.
Therefore, the unnecessary external function import is removed in
efl_all.cs.

src/bindings/mono/efl_mono/efl_csharp_application.cs

index f067b28..3bac961 100644 (file)
@@ -3,15 +3,6 @@ using System.Runtime.InteropServices;
 using System.Threading;
 using static Efl.UnsafeNativeMethods;
 
-static class UnsafeNativeMethods {
-    [DllImport(efl.Libs.Ecore)] public static extern void ecore_init();
-    [DllImport(efl.Libs.Ecore)] public static extern void ecore_shutdown();
-    [DllImport(efl.Libs.Elementary)] public static extern int elm_init(int argc, IntPtr argv);
-    [DllImport(efl.Libs.Elementary)] public static extern void elm_policy_set(int policy, int policy_detail);
-    [DllImport(efl.Libs.Elementary)] public static extern void elm_shutdown();
-    [DllImport(efl.Libs.Elementary)] public static extern void elm_exit();
-}
-
 namespace Efl {
   namespace Csharp {
     ///<summary>The components to be initialized.</summary>