From fb301eea87bcade60bf7b2304c805f00147276e6 Mon Sep 17 00:00:00 2001 From: Yeongjong Lee Date: Thu, 19 Dec 2019 16:30:53 +0900 Subject: [PATCH] csharp: remove unused code in workaround Test Plan: meson setup -Dbindings=mono,cxx -Dmono-beta=true Reviewers: lauromoura, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10914 --- src/bindings/mono/eo_mono/workaround.cs | 120 ------------------------ 1 file changed, 120 deletions(-) diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs index 7b0ceab056..0afe95807b 100644 --- a/src/bindings/mono/eo_mono/workaround.cs +++ b/src/bindings/mono/eo_mono/workaround.cs @@ -255,126 +255,6 @@ internal struct Event internal delegate void EventCb(System.IntPtr data, ref Event.NativeStruct evt); internal delegate void FreeWrapperSupervisorCb(System.IntPtr obj); -[StructLayout(LayoutKind.Sequential)] -public struct TextCursorCursor : IEquatable -{ - IntPtr obj; - UIntPtr pos; // UIntPtr to automatically change size_t between 32/64 - IntPtr node; - [MarshalAsAttribute(UnmanagedType.U1)]bool changed; - - /// - /// Gets a hash for . - /// Since EFL 1.24. - /// - /// A hash code. - public override int GetHashCode() - => obj.GetHashCode() ^ pos.GetHashCode() - ^ node.GetHashCode() ^ changed.GetHashCode(); - - /// Returns whether this - /// is equal to the given . - /// Since EFL 1.24. - /// - /// The to be compared to. - /// true if is equal to other. - public override bool Equals(object other) - => (!(other is TextCursorCursor)) ? false - : Equals((TextAnnotateAnnotation)other); - - - /// Returns whether this is equal - /// to the given . - /// Since EFL 1.24. - /// - /// The to be compared to. - /// true if is equal to other. - public bool Equals(TextCursorCursor other) - => (obj == other.obj) && (pos == other.pos) - && (node == other.node) && (changed == other.changed); - - /// Returns whether lhs is equal to rhs. - /// Since EFL 1.24. - /// - /// The left hand side of the operator. - /// The right hand side of the operator. - /// true if lhs is equal - /// to rhs. - public static bool operator==(TextCursorCursor lhs, TextCursorCursor rhs) - => lhs.Equals(rhs); - - /// Returns whether lhs is not equal to rhs. - /// Since EFL 1.24. - /// - /// The left hand side of the operator. - /// The right hand side of the operator. - /// true if lhs is not equal - /// to rhs. - public static bool operator!=(TextCursorCursor lhs, TextCursorCursor rhs) - => !(lhs == rhs); -} - -[StructLayout(LayoutKind.Sequential)] -public struct TextAnnotateAnnotation : IEquatable -{ - IntPtr list; - IntPtr obj; - IntPtr start_node; - IntPtr end_node; - [MarshalAsAttribute(UnmanagedType.U1)]bool is_item; - - /// - /// Gets a hash for . - /// Since EFL 1.24. - /// - /// A hash code. - public override int GetHashCode() - => list.GetHashCode() ^ obj.GetHashCode() - ^ start_node.GetHashCode() ^ end_node.GetHashCode() - ^ is_item.GetHashCode(); - - /// Returns whether this - /// is equal to the given . - /// Since EFL 1.24. - /// - /// The to be compared to. - /// true if is equal to other. - public override bool Equals(object other) - => (!(other is TextAnnotateAnnotation)) ? false - : Equals((TextAnnotateAnnotation)other); - - - /// Returns whether this is equal - /// to the given . - /// Since EFL 1.24. - /// - /// The to be compared to. - /// true if is equal to other. - public bool Equals(TextAnnotateAnnotation other) - => (list == other.list) && (obj == other.obj) - && (start_node == other.start_node) && (is_item == other.is_item); - - /// Returns whether lhs is equal to rhs. - /// Since EFL 1.24. - /// - /// The left hand side of the operator. - /// The right hand side of the operator. - /// true if lhs is equal - /// to rhs. - public static bool operator==(TextAnnotateAnnotation lhs, TextAnnotateAnnotation rhs) - => lhs.Equals(rhs); - - /// Returns whether lhs is not equal to rhs. - /// Since EFL 1.24. - /// - /// The left hand side of the operator. - /// The right hand side of the operator. - /// true if lhs is not equal - /// to rhs. - public static bool operator!=(TextAnnotateAnnotation lhs, TextAnnotateAnnotation rhs) - => !(lhs == rhs); -} - namespace Access {