rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=f7470480a0854610e93ff9bdb6ea7642e4a7bf50
commit f7470480a0854610e93ff9bdb6ea7642e4a7bf50 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Fri Mar 25 12:04:02 2016 +0200 eflete: delete unused funct win_layout_get Change-Id: I1ddd0ab20d37c8b625ba1d3dcf76075f0d3adcf8 --- src/bin/eflete.c | 8 ----- src/bin/eflete.h | 12 ------- tests/Makefile.am | 1 - tests/test_eflete/test_eflete.c | 2 -- tests/test_eflete/test_eflete.h | 2 -- tests/test_eflete/win_layout_get.c | 72 -------------------------------------- 6 files changed, 97 deletions(-) diff --git a/src/bin/eflete.c b/src/bin/eflete.c index 14c754e..6543132 100644 --- a/src/bin/eflete.c +++ b/src/bin/eflete.c @@ -31,14 +31,6 @@ App_Data ap; static Eina_Bool do_block = true; Evas_Object * -win_layout_get(void) -{ - assert(ap.win_layout != NULL); - - return ap.win_layout; -} - -Evas_Object * main_window_get(void) { assert(ap.win != NULL); diff --git a/src/bin/eflete.h b/src/bin/eflete.h index 912b4a4..079298c 100644 --- a/src/bin/eflete.h +++ b/src/bin/eflete.h @@ -174,18 +174,6 @@ void eflete_main_loop_quit(void); /** - * This function will return win_layout (if App_Data and win_layout exists). - * If they are not exist, then this function will return NULL. - * This function is usable for notification. - * - * @return win_layout if exist, NULL if not exist. - * - * @ingroup Eflete - */ -Evas_Object * -win_layout_get(void); - -/** * This function get pointer to main window of application. * * @return pointer to main window Evas_Object. diff --git a/tests/Makefile.am b/tests/Makefile.am index 733258d..0ce20c1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -127,7 +127,6 @@ eflete_test_SOURCES = \ ../tests/test_eflete/test_eflete.c \ ../tests/test_eflete/app_init.c \ ../tests/test_eflete/app_shutdown.c \ -../tests/test_eflete/win_layout_get.c \ ../tests/test_eflete/main_window_get.c \ ../tests/test_eflete/colorselector_get.c eflete_test_CFLAGS = ${FLAGS} diff --git a/tests/test_eflete/test_eflete.c b/tests/test_eflete/test_eflete.c index be9ede2..b4fbc0a 100644 --- a/tests/test_eflete/test_eflete.c +++ b/tests/test_eflete/test_eflete.c @@ -25,8 +25,6 @@ Suite* test_suite (void) { tcase_add_test(tcase, app_init_test_p); - tcase_add_test(tcase, win_layout_get_test_p); - tcase_add_test(tcase, app_shutdown_test_p1); tcase_add_test(tcase, app_shutdown_test_p2); diff --git a/tests/test_eflete/test_eflete.h b/tests/test_eflete/test_eflete.h index 3cc6d7f..bae584f 100644 --- a/tests/test_eflete/test_eflete.h +++ b/tests/test_eflete/test_eflete.h @@ -27,8 +27,6 @@ void app_init_test_p(int); -void win_layout_get_test_p(int); - void app_shutdown_test_p1(int); void app_shutdown_test_p2(int); diff --git a/tests/test_eflete/win_layout_get.c b/tests/test_eflete/win_layout_get.c deleted file mode 100644 index 88a0c95..0000000 --- a/tests/test_eflete/win_layout_get.c +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Edje Theme Editor - * Copyright (C) 2013-2014 Samsung Electronics. - * - * This file is part of Edje Theme Editor. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; If not, see www.gnu.org/licenses/lgpl.html. - */ - -#include "test_eflete.h" - -/** - * @addtogroup eflete_test - * @{ - * @addtogroup win_layout_get - * @{ - * eflete - * <TABLE> - * @} - */ - -/** - * @addtogroup win_layout_get - * @{ - * <tr> - * <td>win_layout_get</td> - * <td>win_layout_get_test_p</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 Initialize requred libraries. - * @step 3 Create application data structure. - * @step 4 create main window - * - * @procedure - * @step 1 call win_layout_get - * @step 2 check returned pointer - * </td> - * <td>void</td> - * <td>Not NULL object</td> - * </tr> - * @} - */ -EFLETE_TEST (win_layout_get_test_p) -{ - elm_init(0,0); - app_init(); - ui_main_window_add(); - - ck_assert_msg(win_layout_get() != NULL, "failure: win_layout not exist"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup win_layout_get - * @{ - * </TABLE> - * @} - * @} - */ --