summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-12-19 16:30:53 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-12-19 16:30:54 +0900
commitfb301eea87bcade60bf7b2304c805f00147276e6 (patch)
treef7be8fcf3b86d7c65e011e093f4f702308d3b3f3 /src/bindings
parenta9fa8da384bb0bcd0a095e227b7bca52f36bc615 (diff)
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
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/mono/eo_mono/workaround.cs120
1 files changed, 0 insertions, 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
255internal delegate void EventCb(System.IntPtr data, ref Event.NativeStruct evt); 255internal delegate void EventCb(System.IntPtr data, ref Event.NativeStruct evt);
256internal delegate void FreeWrapperSupervisorCb(System.IntPtr obj); 256internal delegate void FreeWrapperSupervisorCb(System.IntPtr obj);
257 257
258[StructLayout(LayoutKind.Sequential)]
259public struct TextCursorCursor : IEquatable<TextCursorCursor>
260{
261 IntPtr obj;
262 UIntPtr pos; // UIntPtr to automatically change size_t between 32/64
263 IntPtr node;
264 [MarshalAsAttribute(UnmanagedType.U1)]bool changed;
265
266 /// <summary>
267 /// Gets a hash for <see cref="TextCursorCursor" />.
268 /// <para>Since EFL 1.24.</para>
269 /// </summary>
270 /// <returns>A hash code.</returns>
271 public override int GetHashCode()
272 => obj.GetHashCode() ^ pos.GetHashCode()
273 ^ node.GetHashCode() ^ changed.GetHashCode();
274
275 /// <summary>Returns whether this <see cref="TextCursorCursor" />
276 /// is equal to the given <see cref="object" />.
277 /// <para>Since EFL 1.24.</para>
278 /// </summary>
279 /// <param name="other">The <see cref="object" /> to be compared to.</param>
280 /// <returns><c>true</c> if is equal to <c>other</c>.</returns>
281 public override bool Equals(object other)
282 => (!(other is TextCursorCursor)) ? false
283 : Equals((TextAnnotateAnnotation)other);
284
285
286 /// <summary>Returns whether this <see cref="TextCursorCursor" /> is equal
287 /// to the given <see cref="TextCursorCursor" />.
288 /// <para>Since EFL 1.24.</para>
289 /// </summary>
290 /// <param name="other">The <see cref="TextCursorCursor" /> to be compared to.</param>
291 /// <returns><c>true</c> if is equal to <c>other</c>.</returns>
292 public bool Equals(TextCursorCursor other)
293 => (obj == other.obj) && (pos == other.pos)
294 && (node == other.node) && (changed == other.changed);
295
296 /// <summary>Returns whether <c>lhs</c> is equal to <c>rhs</c>.
297 /// <para>Since EFL 1.24.</para>
298 /// </summary>
299 /// <param name="lhs">The left hand side of the operator.</param>
300 /// <param name="rhs">The right hand side of the operator.</param>
301 /// <returns><c>true</c> if <c>lhs</c> is equal
302 /// to <c>rhs</c>.</returns>
303 public static bool operator==(TextCursorCursor lhs, TextCursorCursor rhs)
304 => lhs.Equals(rhs);
305
306 /// <summary>Returns whether <c>lhs</c> is not equal to <c>rhs</c>.
307 /// <para>Since EFL 1.24.</para>
308 /// </summary>
309 /// <param name="lhs">The left hand side of the operator.</param>
310 /// <param name="rhs">The right hand side of the operator.</param>
311 /// <returns><c>true</c> if <c>lhs</c> is not equal
312 /// to <c>rhs</c>.</returns>
313 public static bool operator!=(TextCursorCursor lhs, TextCursorCursor rhs)
314 => !(lhs == rhs);
315}
316
317[StructLayout(LayoutKind.Sequential)]
318public struct TextAnnotateAnnotation : IEquatable<TextAnnotateAnnotation>
319{
320 IntPtr list;
321 IntPtr obj;
322 IntPtr start_node;
323 IntPtr end_node;
324 [MarshalAsAttribute(UnmanagedType.U1)]bool is_item;
325
326 /// <summary>
327 /// Gets a hash for <see cref="TextAnnotateAnnotation" />.
328 /// <para>Since EFL 1.24.</para>
329 /// </summary>
330 /// <returns>A hash code.</returns>
331 public override int GetHashCode()
332 => list.GetHashCode() ^ obj.GetHashCode()
333 ^ start_node.GetHashCode() ^ end_node.GetHashCode()
334 ^ is_item.GetHashCode();
335
336 /// <summary>Returns whether this <see cref="TextAnnotateAnnotation" />
337 /// is equal to the given <see cref="object" />.
338 /// <para>Since EFL 1.24.</para>
339 /// </summary>
340 /// <param name="other">The <see cref="object" /> to be compared to.</param>
341 /// <returns><c>true</c> if is equal to <c>other</c>.</returns>
342 public override bool Equals(object other)
343 => (!(other is TextAnnotateAnnotation)) ? false
344 : Equals((TextAnnotateAnnotation)other);
345
346
347 /// <summary>Returns whether this <see cref="TextAnnotateAnnotation" /> is equal
348 /// to the given <see cref="TextAnnotateAnnotation" />.
349 /// <para>Since EFL 1.24.</para>
350 /// </summary>
351 /// <param name="other">The <see cref="TextAnnotateAnnotation" /> to be compared to.</param>
352 /// <returns><c>true</c> if is equal to <c>other</c>.</returns>
353 public bool Equals(TextAnnotateAnnotation other)
354 => (list == other.list) && (obj == other.obj)
355 && (start_node == other.start_node) && (is_item == other.is_item);
356
357 /// <summary>Returns whether <c>lhs</c> is equal to <c>rhs</c>.
358 /// <para>Since EFL 1.24.</para>
359 /// </summary>
360 /// <param name="lhs">The left hand side of the operator.</param>
361 /// <param name="rhs">The right hand side of the operator.</param>
362 /// <returns><c>true</c> if <c>lhs</c> is equal
363 /// to <c>rhs</c>.</returns>
364 public static bool operator==(TextAnnotateAnnotation lhs, TextAnnotateAnnotation rhs)
365 => lhs.Equals(rhs);
366
367 /// <summary>Returns whether <c>lhs</c> is not equal to <c>rhs</c>.
368 /// <para>Since EFL 1.24.</para>
369 /// </summary>
370 /// <param name="lhs">The left hand side of the operator.</param>
371 /// <param name="rhs">The right hand side of the operator.</param>
372 /// <returns><c>true</c> if <c>lhs</c> is not equal
373 /// to <c>rhs</c>.</returns>
374 public static bool operator!=(TextAnnotateAnnotation lhs, TextAnnotateAnnotation rhs)
375 => !(lhs == rhs);
376}
377
378namespace Access 258namespace Access
379{ 259{
380 260