From d7006f6a09e60d4496488a24732bf4ad047e70d2 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Tue, 10 Sep 2019 23:41:42 -0300 Subject: [PATCH] csharp: remove unused delegate and struct Summary: cleanup workaround.cs Test Plan: ninja test Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9895 --- src/bindings/mono/eo_mono/workaround.cs | 104 ------------------------ 1 file changed, 104 deletions(-) diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index 49a6e1ef58..a8079e4090 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -44,30 +44,6 @@ public struct Efl_Object_Ops public UIntPtr count; }; -#pragma warning disable 0169 - -public struct EvasObjectBoxLayout -{ - IntPtr o; - IntPtr priv; - IntPtr user_data; -}; - -[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)] -public struct EvasObjectBoxData -{ -} - -public struct EvasObjectBoxOption -{ - IntPtr obj; - [MarshalAsAttribute(UnmanagedType.U1)] bool max_reached; - [MarshalAsAttribute(UnmanagedType.U1)] bool min_reached; - Evas.Coord alloc_size; -}; - -#pragma warning restore 0169 - namespace Efl { @@ -212,8 +188,6 @@ public struct TextAnnotateAnnotation [MarshalAsAttribute(UnmanagedType.U1)]bool is_item; } -public delegate void SignalCb(IntPtr data, IntPtr obj, IntPtr emission, IntPtr source); - namespace Access { @@ -229,85 +203,7 @@ public struct ActionData } // namespace Efl -namespace Evas -{ - -public struct Coord -{ - int val; - - public Coord(int value) - { - val = value; - } - - static public implicit operator Coord(int val) - { - return new Coord(val); - } - - static public implicit operator int(Coord coord) - { - return coord.val; - } -} - -/* Copied from Evas_Legacy.h */ -public enum TextStyleType -{ - /// plain, standard text. - Plain = 0, - /// text with shadow underneath. - Shadow, - /// text with an outline. - Outline, - /// text with a soft outline. - SoftOutline, - /// text with a glow effect. - Glow, - /// text with both outline and shadow effects. - OutlineShadow, - /// text with (far) shadow underneath. - FarShadow, - /// text with outline and soft shadow effects combined. - OutlineSoftShadow, - /// text with (soft) shadow underneath. - SoftShadow, - /// text with (far soft) shadow underneath. - FarSoftShadow, - - // Shadow direction modifiers - /// shadow growing to bottom right. - ShadowDirectionBottomRight = 0 /* 0 >> 4 */, - /// shadow growing to the bottom. - ShadowDirectionBottom = 16 /* 1 >> 4 */, - /// shadow growing to bottom left. - ShadowDirectionBottomLeft = 32 /* 2 >> 4 */, - /// shadow growing to the left. - ShadowDirectionLeft = 48 /* 3 >> 4 */, - /// shadow growing to top left. - ShadowDirectionTopLeft = 64 /* 4 >> 4 */, - /// shadow growing to the top. - ShadowDirectionTop = 80 /* 5 >> 4 */, - /// shadow growing to top right. - ShadowDirectionTopRight = 96 /* 6 >> 4 */, - /// shadow growing to the right. - ShadowDirectionRight = 112 /* 7 >> 4 */ -}; - -} // namespace Evas - // Global delegates public delegate int Eina_Compare_Cb(IntPtr a, IntPtr b); -public delegate void ElmInterfaceScrollableCb(IntPtr obj, IntPtr data); -public delegate void ElmInterfaceScrollableMinLimitCb(IntPtr obj, - [MarshalAsAttribute(UnmanagedType.U1)]bool w, - [MarshalAsAttribute(UnmanagedType.U1)]bool h); -public delegate void ElmInterfaceScrollableResizeCb(IntPtr obj, Evas.Coord w, Evas.Coord h); -[return: MarshalAsAttribute(UnmanagedType.U1)] -public delegate bool ElmMultibuttonentryItemFilterCb(IntPtr obj, IntPtr item_label, IntPtr item_data, IntPtr data); -public delegate IntPtr ElmMultibuttonentryFormatCb(int count, IntPtr data); public delegate void EinaFreeCb(IntPtr data); public delegate void EvasSmartCb(IntPtr data, IntPtr obj, IntPtr event_info); -public delegate void ElmObjectItemSignalCb(IntPtr data, IntPtr item, IntPtr emission, IntPtr source); -public delegate void ElmTooltipItemContentCb(IntPtr data, IntPtr obj, IntPtr tooltip, IntPtr item);