From 80acb7fbe0b3870fb337315faee07e604384d314 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 13 Jan 2016 17:44:01 +0900 Subject: [PATCH] Ector GL: Remove duplicated functions (eo) --- src/lib/ector/gl/ector_gl_buffer.eo | 2 -- src/lib/ector/gl/ector_gl_buffer_base.c | 7 ------- src/lib/ector/gl/ector_gl_buffer_base.eo | 13 ------------- 3 files changed, 22 deletions(-) diff --git a/src/lib/ector/gl/ector_gl_buffer.eo b/src/lib/ector/gl/ector_gl_buffer.eo index aabeb09..eb1bb04 100644 --- a/src/lib/ector/gl/ector_gl_buffer.eo +++ b/src/lib/ector/gl/ector_gl_buffer.eo @@ -2,6 +2,4 @@ class Ector.GL.Buffer (Eo.Base, Ector.GL.Buffer.Base) { legacy_prefix: null; data: null; - implements { - } } diff --git a/src/lib/ector/gl/ector_gl_buffer_base.c b/src/lib/ector/gl/ector_gl_buffer_base.c index c55963a..954988a0 100644 --- a/src/lib/ector/gl/ector_gl_buffer_base.c +++ b/src/lib/ector/gl/ector_gl_buffer_base.c @@ -28,13 +28,6 @@ _ector_gl_buffer_base_whole_get(Eo *obj EINA_UNUSED, Ector_GL_Buffer_Base_Data * } EOLIAN static void -_ector_gl_buffer_base_size_get(Eo *obj EINA_UNUSED, Ector_GL_Buffer_Base_Data *pd, int *w, int *h) -{ - if (w) *w = pd->generic->w; - if (h) *h = pd->generic->h; -} - -EOLIAN static void _ector_gl_buffer_base_vertices_get(Eo *obj EINA_UNUSED, Ector_GL_Buffer_Base_Data *pd, double *x, double *y, double *w, double *h) { if (x) *x = (double) pd->atlas.x / pd->atlas.w; diff --git a/src/lib/ector/gl/ector_gl_buffer_base.eo b/src/lib/ector/gl/ector_gl_buffer_base.eo index b783880..7016359 100644 --- a/src/lib/ector/gl/ector_gl_buffer_base.eo +++ b/src/lib/ector/gl/ector_gl_buffer_base.eo @@ -23,17 +23,6 @@ mixin Ector.GL.Buffer.Base (Ector.Generic.Buffer) is_whole: bool; } } - @property size { - [[The size in pixels of this image. - - If the image is whole, then this is equal to the atlas size. - ]] - get {} - values { - w: int; - h: int; - } - } @property vertices { [[Returns the texture vertices to draw this image with no rotation @@ -66,6 +55,4 @@ mixin Ector.GL.Buffer.Base (Ector.Generic.Buffer) } } } - implements { - } } -- 2.7.4