summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-01-31 13:32:24 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2020-01-31 13:32:24 +0100
commitc93f4e8437d7d9a79ec114cae2badff67082cafa (patch)
tree1e705d024c1805b09342c7bc60a7dbe9c1c69263
parent11fb78135a86630a57579b81113114b51da677c9 (diff)
downloadefl-c93f4e8437d7d9a79ec114cae2badff67082cafa.tar.gz
exactness: remove unused code
Either commented out, blank lines or no needed includes.
-rw-r--r--src/bin/exactness/exactness.c2
-rw-r--r--src/bin/exactness/injector.c11
-rw-r--r--src/bin/exactness/inspect.c2
-rw-r--r--src/bin/exactness/player.c26
-rw-r--r--src/bin/exactness/player_entry.edc38
-rw-r--r--src/bin/exactness/recorder.c6
-rw-r--r--src/lib/exactness/legacy_file.c1
-rw-r--r--src/lib/exactness/unit.c15
8 files changed, 20 insertions, 81 deletions
diff --git a/src/bin/exactness/exactness.c b/src/bin/exactness/exactness.c
index 9b6153470a..f4c4e52498 100644
--- a/src/bin/exactness/exactness.c
+++ b/src/bin/exactness/exactness.c
@@ -491,8 +491,6 @@ main(int argc, char *argv[])
ecore_init();
ecore_evas_init();
evas_init();
- mode_play = mode_init = mode_simulation = EINA_FALSE;
- want_quit = EINA_FALSE;
_dest_dir = "./";
_scan_objs = scan_objs;
diff --git a/src/bin/exactness/injector.c b/src/bin/exactness/injector.c
index 8840ea1028..d98c478bde 100644
--- a/src/bin/exactness/injector.c
+++ b/src/bin/exactness/injector.c
@@ -15,8 +15,6 @@
#include <Exactness.h>
-#include "exactness_private.h"
-
typedef struct
{
Eina_Debug_Session *session;
@@ -390,15 +388,8 @@ WRAPPER_TO_XFER_MAIN_LOOP(_all_apps_get_cb)
static void
_ops_ready_cb(void *data EINA_UNUSED, Eina_Bool status)
{
- static Eina_Bool on = EINA_FALSE;
if (status)
- {
- if (!on)
- {
- eina_debug_session_send(_session, 0, _all_apps_get_op, NULL, 0);
- }
- on = EINA_TRUE;
- }
+ eina_debug_session_send(_session, 0, _all_apps_get_op, NULL, 0);
}
static const Ecore_Getopt optdesc = {
diff --git a/src/bin/exactness/inspect.c b/src/bin/exactness/inspect.c
index 47a74f5bd2..15242b8d9d 100644
--- a/src/bin/exactness/inspect.c
+++ b/src/bin/exactness/inspect.c
@@ -9,8 +9,6 @@
#include <Exactness.h>
#include <Efl_Ui.h>
-#include "exactness_private.h"
-
#define LDIFF(x) "<b><color=#F0F>"#x"</color></b>"
#define RDIFF(x) "<b><color=#0FF>"#x"</color></b>"
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c
index 24b2d5910c..dcffb0e2df 100644
--- a/src/bin/exactness/player.c
+++ b/src/bin/exactness/player.c
@@ -498,32 +498,6 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
d.name = t->event_name;
d.legacy_is = EINA_TRUE;
efl_event_callback_legacy_call(o, &d, NULL);
-#if 0
- /* Remove when events stuff work well */
- Eina_Size2D sz = efl_gfx_size_get(o);
- Eina_Position2D pos = efl_gfx_position_get(o);
- if (!strcmp(t->event_name, "clicked") ||
- !strcmp(t->event_name, "clicked,double"))
- {
- int x = pos.x + (sz.w / 2);
- int y = pos.y + (sz.h / 2);
- evas_event_feed_mouse_move(e, x, y, time(NULL), NULL);
- evas_event_feed_mouse_down(e, 0, EVAS_BUTTON_NONE, time(NULL), NULL);
- evas_event_feed_mouse_up(e, 0, EVAS_BUTTON_NONE, time(NULL), NULL);
- if (rect)
- {
- evas_object_move(rect, x, y);
- evas_object_color_set(rect, 255, 0, 0, 255);
- }
- if (!strcmp(t->event_name, "clicked,double"))
- {
- evas_event_feed_mouse_down(e, 0, EVAS_BUTTON_DOUBLE_CLICK,
- time(NULL), NULL);
- evas_event_feed_mouse_up(e, 0, EVAS_BUTTON_DOUBLE_CLICK,
- time(NULL), NULL);
- }
- }
-#endif
}
}
if (!found) fprintf(stderr, "Failed finding %s.\n", t->wdg_name);
diff --git a/src/bin/exactness/player_entry.edc b/src/bin/exactness/player_entry.edc
index b0d1966d6e..0c1b907c10 100644
--- a/src/bin/exactness/player_entry.edc
+++ b/src/bin/exactness/player_entry.edc
@@ -101,7 +101,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/selection/default";
parts {
part { name: "base"; type: RECT;
@@ -111,7 +111,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/anchor/default";
images.image: "horizontal_separated_bar_small_glow.png" COMP;
parts {
@@ -128,7 +128,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base/default";
sounds {
sample { name: "key-tap1" LOSSY 64;
@@ -147,7 +147,7 @@ collections {
source: "kbd-tap5.wav";
}
}
-
+
styles {
style { name: "entry_style";
base: "font="FN" font_size=10 color=#ffffff style=shadow,bottom shadow_color=#00000080 wrap=word text_class=entry_text color_class=entry_text left_margin=2 right_margin=2";
@@ -275,7 +275,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-mixedwrap/default";
inherit: "elm/entry/base/default";
styles {
@@ -325,7 +325,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-charwrap/default";
inherit: "elm/entry/base/default";
styles {
@@ -375,7 +375,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-nowrap/default";
inherit: "elm/entry/base/default";
parts {
@@ -411,7 +411,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-single/default";
inherit: "elm/entry/base/default";
styles {
@@ -462,7 +462,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-single/spinner/default";
alias: "elm/entry/base-single/spinner/vertical";
inherit: "elm/entry/base-single/default";
@@ -480,7 +480,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-single-noedit/default";
inherit: "elm/entry/base/default";
parts {
@@ -506,7 +506,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-noedit/default";
inherit: "elm/entry/base/default";
parts {
@@ -530,7 +530,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-noedit-mixedwrap/default";
inherit: "elm/entry/base/default";
parts {
@@ -554,7 +554,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-noedit-charwrap/default";
inherit: "elm/entry/base/default";
parts {
@@ -578,7 +578,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-nowrap-noedit/default";
inherit: "elm/entry/base/default";
parts {
@@ -602,7 +602,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/base-password/default";
inherit: "elm/entry/base/default";
parts {
@@ -644,7 +644,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/magnifier/default";
images.image: "frame_rounded.png" COMP;
parts {
@@ -706,7 +706,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/handler/start/default";
images.image: "handle_pick_up_left.png" COMP;
parts {
@@ -754,7 +754,7 @@ collections {
}
}
}
-
+
group { name: "elm/entry/handler/end/default";
images.image: "handle_pick_up_right.png" COMP;
parts {
@@ -802,7 +802,7 @@ collections {
}
}
}
-
+
///////////////////////////////////////////////////////////////////////////////
// emoticon images from:
// Tanya - Latvia
diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c
index 7386c79584..f3fd80148f 100644
--- a/src/bin/exactness/recorder.c
+++ b/src/bin/exactness/recorder.c
@@ -447,12 +447,6 @@ int main(int argc, char **argv)
goto end;
}
- if (strcmp(_out_filename + strlen(_out_filename) - 4,".exu"))
- {
- fprintf(stderr, "A file with a exu extension is required - %s invalid\n", _out_filename);
- goto end;
- }
-
if (!argv[opt_args])
{
fprintf(stderr, "no program specified\nUse -h for more information\n");
diff --git a/src/lib/exactness/legacy_file.c b/src/lib/exactness/legacy_file.c
index 78ef333551..ae496a15b2 100644
--- a/src/lib/exactness/legacy_file.c
+++ b/src/lib/exactness/legacy_file.c
@@ -873,4 +873,3 @@ legacy_rec_file_read(const char *filename)
return unit;
}
-
diff --git a/src/lib/exactness/unit.c b/src/lib/exactness/unit.c
index 51f3453332..91965331d8 100644
--- a/src/lib/exactness/unit.c
+++ b/src/lib/exactness/unit.c
@@ -10,20 +10,6 @@
typedef struct _Dummy
{
} _Dummy;
-/*
-static Eet_Data_Descriptor *
-_mouse_in_out_desc_make(void)
-{
- Eet_Data_Descriptor_Class eddc;
- Eet_Data_Descriptor *_d;
- EET_EINA_STREAM_DATA_DESCRIPTOR_CLASS_SET(&eddc, Exactness_Action_Mouse_In_Out);
- _d = eet_data_descriptor_stream_new(&eddc);
-
- EET_DATA_DESCRIPTOR_ADD_BASIC(_d, Exactness_Action_Mouse_In_Out, "n_evas", n_evas, EET_T_INT);
-
- return _d;
-}
-*/
static Eet_Data_Descriptor *
_mouse_wheel_desc_make(void)
@@ -421,4 +407,3 @@ EAPI void exactness_image_free(Exactness_Image *img)
free(img->pixels);
free(img);
}
-