Signed-off-by: Emre Ucan <[email protected]>
---
 ivi-shell/ivi-layout-export.h    |    9 ---------
 ivi-shell/ivi-layout.c           |   25 -------------------------
 tests/ivi_layout-internal-test.c |   11 -----------
 tests/ivi_layout-test-plugin.c   |   14 ++------------
 4 files changed, 2 insertions(+), 57 deletions(-)

diff --git a/ivi-shell/ivi-layout-export.h b/ivi-shell/ivi-layout-export.h
index 1a16b44..f079931 100644
--- a/ivi-shell/ivi-layout-export.h
+++ b/ivi-shell/ivi-layout-export.h
@@ -312,15 +312,6 @@ struct ivi_layout_interface {
                                                     int32_t width, int32_t 
height);
 
        /**
-        * \brief Set the horizontal and vertical dimension of the surface.
-        *
-        * \return IVI_SUCCEEDED if the method call was successful
-        * \return IVI_FAILED if the method call was failed
-        */
-       int32_t (*surface_set_dimension)(struct ivi_layout_surface *ivisurf,
-                                        int32_t dest_width, int32_t 
dest_height);
-
-       /**
         * \brief Sets the orientation of a ivi_surface.
         *
         * \return IVI_SUCCEEDED if the method call was successful
diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c
index 9f4a0e2..c3998e3 100644
--- a/ivi-shell/ivi-layout.c
+++ b/ivi-shell/ivi-layout.c
@@ -2030,30 +2030,6 @@ ivi_layout_surface_set_destination_rectangle(struct 
ivi_layout_surface *ivisurf,
 }
 
 static int32_t
-ivi_layout_surface_set_dimension(struct ivi_layout_surface *ivisurf,
-                                int32_t dest_width, int32_t dest_height)
-{
-       struct ivi_layout_surface_properties *prop = NULL;
-
-       if (ivisurf == NULL) {
-               weston_log("ivi_layout_surface_set_dimension: invalid 
argument\n");
-               return IVI_FAILED;
-       }
-
-       prop = &ivisurf->pending.prop;
-       prop->dest_width  = dest_width;
-       prop->dest_height = dest_height;
-
-       if (ivisurf->prop.dest_width != dest_width ||
-           ivisurf->prop.dest_height != dest_height)
-               ivisurf->event_mask |= IVI_NOTIFICATION_DIMENSION;
-       else
-               ivisurf->event_mask &= ~IVI_NOTIFICATION_DIMENSION;
-
-       return IVI_SUCCEEDED;
-}
-
-static int32_t
 ivi_layout_surface_set_orientation(struct ivi_layout_surface *ivisurf,
                                   enum wl_output_transform orientation)
 {
@@ -2578,7 +2554,6 @@ static struct ivi_layout_interface ivi_layout_interface = 
{
        .surface_set_opacity                    = 
ivi_layout_surface_set_opacity,
        .surface_set_source_rectangle           = 
ivi_layout_surface_set_source_rectangle,
        .surface_set_destination_rectangle      = 
ivi_layout_surface_set_destination_rectangle,
-       .surface_set_dimension                  = 
ivi_layout_surface_set_dimension,
        .surface_set_orientation                = 
ivi_layout_surface_set_orientation,
        .surface_set_content_observer           = 
ivi_layout_surface_set_content_observer,
        .surface_add_notification               = 
ivi_layout_surface_add_notification,
diff --git a/tests/ivi_layout-internal-test.c b/tests/ivi_layout-internal-test.c
index fd2f0db..14bdb9f 100644
--- a/tests/ivi_layout-internal-test.c
+++ b/tests/ivi_layout-internal-test.c
@@ -91,16 +91,6 @@ test_surface_bad_orientation(struct test_context *ctx)
 }
 
 static void
-test_surface_bad_dimension(struct test_context *ctx)
-{
-       const struct ivi_layout_interface *lyt = ctx->layout_interface;
-
-       iassert(lyt->surface_set_dimension(NULL, 200, 300) == IVI_FAILED);
-
-       lyt->commit_changes();
-}
-
-static void
 test_surface_bad_source_rectangle(struct test_context *ctx)
 {
        const struct ivi_layout_interface *lyt = ctx->layout_interface;
@@ -1003,7 +993,6 @@ run_internal_tests(void *data)
        test_surface_bad_visibility(ctx);
        test_surface_bad_destination_rectangle(ctx);
        test_surface_bad_orientation(ctx);
-       test_surface_bad_dimension(ctx);
        test_surface_bad_source_rectangle(ctx);
        test_surface_bad_properties(ctx);
 
diff --git a/tests/ivi_layout-test-plugin.c b/tests/ivi_layout-test-plugin.c
index 933ee2d..4ee36e9 100644
--- a/tests/ivi_layout-test-plugin.c
+++ b/tests/ivi_layout-test-plugin.c
@@ -431,7 +431,8 @@ RUNNER_TEST(surface_dimension)
        runner_assert(prop->dest_height == 1);
 
        runner_assert(IVI_SUCCEEDED ==
-                     lyt->surface_set_dimension(ivisurf, 200, 300));
+                     lyt->surface_set_destination_rectangle(ivisurf, 
prop->dest_x,
+                     prop->dest_y, 200, 300));
 
        runner_assert(prop->dest_width == 1);
        runner_assert(prop->dest_height == 1);
@@ -621,17 +622,6 @@ 
RUNNER_TEST(commit_changes_after_orientation_set_surface_destroy)
                      ivisurf, WL_OUTPUT_TRANSFORM_90) == IVI_SUCCEEDED);
 }
 
-RUNNER_TEST(commit_changes_after_dimension_set_surface_destroy)
-{
-       const struct ivi_layout_interface *lyt = ctx->layout_interface;
-       struct ivi_layout_surface *ivisurf;
-
-       ivisurf = lyt->get_surface_from_id(IVI_TEST_SURFACE_ID(0));
-       runner_assert(ivisurf != NULL);
-       runner_assert(lyt->surface_set_dimension(
-                     ivisurf, 200, 300) == IVI_SUCCEEDED);
-}
-
 RUNNER_TEST(commit_changes_after_source_rectangle_set_surface_destroy)
 {
        const struct ivi_layout_interface *lyt = ctx->layout_interface;
-- 
1.7.9.5

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to