forked from enlightenment/efl
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
This commit is contained in:
parent
a9fa8da384
commit
fb301eea87
|
@ -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<TextCursorCursor>
|
||||
{
|
||||
IntPtr obj;
|
||||
UIntPtr pos; // UIntPtr to automatically change size_t between 32/64
|
||||
IntPtr node;
|
||||
[MarshalAsAttribute(UnmanagedType.U1)]bool changed;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a hash for <see cref="TextCursorCursor" />.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <returns>A hash code.</returns>
|
||||
public override int GetHashCode()
|
||||
=> obj.GetHashCode() ^ pos.GetHashCode()
|
||||
^ node.GetHashCode() ^ changed.GetHashCode();
|
||||
|
||||
/// <summary>Returns whether this <see cref="TextCursorCursor" />
|
||||
/// is equal to the given <see cref="object" />.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="other">The <see cref="object" /> to be compared to.</param>
|
||||
/// <returns><c>true</c> if is equal to <c>other</c>.</returns>
|
||||
public override bool Equals(object other)
|
||||
=> (!(other is TextCursorCursor)) ? false
|
||||
: Equals((TextAnnotateAnnotation)other);
|
||||
|
||||
|
||||
/// <summary>Returns whether this <see cref="TextCursorCursor" /> is equal
|
||||
/// to the given <see cref="TextCursorCursor" />.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="other">The <see cref="TextCursorCursor" /> to be compared to.</param>
|
||||
/// <returns><c>true</c> if is equal to <c>other</c>.</returns>
|
||||
public bool Equals(TextCursorCursor other)
|
||||
=> (obj == other.obj) && (pos == other.pos)
|
||||
&& (node == other.node) && (changed == other.changed);
|
||||
|
||||
/// <summary>Returns whether <c>lhs</c> is equal to <c>rhs</c>.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="lhs">The left hand side of the operator.</param>
|
||||
/// <param name="rhs">The right hand side of the operator.</param>
|
||||
/// <returns><c>true</c> if <c>lhs</c> is equal
|
||||
/// to <c>rhs</c>.</returns>
|
||||
public static bool operator==(TextCursorCursor lhs, TextCursorCursor rhs)
|
||||
=> lhs.Equals(rhs);
|
||||
|
||||
/// <summary>Returns whether <c>lhs</c> is not equal to <c>rhs</c>.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="lhs">The left hand side of the operator.</param>
|
||||
/// <param name="rhs">The right hand side of the operator.</param>
|
||||
/// <returns><c>true</c> if <c>lhs</c> is not equal
|
||||
/// to <c>rhs</c>.</returns>
|
||||
public static bool operator!=(TextCursorCursor lhs, TextCursorCursor rhs)
|
||||
=> !(lhs == rhs);
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct TextAnnotateAnnotation : IEquatable<TextAnnotateAnnotation>
|
||||
{
|
||||
IntPtr list;
|
||||
IntPtr obj;
|
||||
IntPtr start_node;
|
||||
IntPtr end_node;
|
||||
[MarshalAsAttribute(UnmanagedType.U1)]bool is_item;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a hash for <see cref="TextAnnotateAnnotation" />.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <returns>A hash code.</returns>
|
||||
public override int GetHashCode()
|
||||
=> list.GetHashCode() ^ obj.GetHashCode()
|
||||
^ start_node.GetHashCode() ^ end_node.GetHashCode()
|
||||
^ is_item.GetHashCode();
|
||||
|
||||
/// <summary>Returns whether this <see cref="TextAnnotateAnnotation" />
|
||||
/// is equal to the given <see cref="object" />.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="other">The <see cref="object" /> to be compared to.</param>
|
||||
/// <returns><c>true</c> if is equal to <c>other</c>.</returns>
|
||||
public override bool Equals(object other)
|
||||
=> (!(other is TextAnnotateAnnotation)) ? false
|
||||
: Equals((TextAnnotateAnnotation)other);
|
||||
|
||||
|
||||
/// <summary>Returns whether this <see cref="TextAnnotateAnnotation" /> is equal
|
||||
/// to the given <see cref="TextAnnotateAnnotation" />.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="other">The <see cref="TextAnnotateAnnotation" /> to be compared to.</param>
|
||||
/// <returns><c>true</c> if is equal to <c>other</c>.</returns>
|
||||
public bool Equals(TextAnnotateAnnotation other)
|
||||
=> (list == other.list) && (obj == other.obj)
|
||||
&& (start_node == other.start_node) && (is_item == other.is_item);
|
||||
|
||||
/// <summary>Returns whether <c>lhs</c> is equal to <c>rhs</c>.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="lhs">The left hand side of the operator.</param>
|
||||
/// <param name="rhs">The right hand side of the operator.</param>
|
||||
/// <returns><c>true</c> if <c>lhs</c> is equal
|
||||
/// to <c>rhs</c>.</returns>
|
||||
public static bool operator==(TextAnnotateAnnotation lhs, TextAnnotateAnnotation rhs)
|
||||
=> lhs.Equals(rhs);
|
||||
|
||||
/// <summary>Returns whether <c>lhs</c> is not equal to <c>rhs</c>.
|
||||
/// <para>Since EFL 1.24.</para>
|
||||
/// </summary>
|
||||
/// <param name="lhs">The left hand side of the operator.</param>
|
||||
/// <param name="rhs">The right hand side of the operator.</param>
|
||||
/// <returns><c>true</c> if <c>lhs</c> is not equal
|
||||
/// to <c>rhs</c>.</returns>
|
||||
public static bool operator!=(TextAnnotateAnnotation lhs, TextAnnotateAnnotation rhs)
|
||||
=> !(lhs == rhs);
|
||||
}
|
||||
|
||||
namespace Access
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue