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 14:14:01 +0100
commit5ba73b01075bcc4353d8129df6015dcdd29b17e3 (patch)
tree1e705d024c1805b09342c7bc60a7dbe9c1c69263
parent9f85df4d2e57898b388649a4e594cc58983e972c (diff)
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[])
491 ecore_init(); 491 ecore_init();
492 ecore_evas_init(); 492 ecore_evas_init();
493 evas_init(); 493 evas_init();
494 mode_play = mode_init = mode_simulation = EINA_FALSE;
495 want_quit = EINA_FALSE;
496 _dest_dir = "./"; 494 _dest_dir = "./";
497 _scan_objs = scan_objs; 495 _scan_objs = scan_objs;
498 496
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 @@
15 15
16#include <Exactness.h> 16#include <Exactness.h>
17 17
18#include "exactness_private.h"
19
20typedef struct 18typedef struct
21{ 19{
22 Eina_Debug_Session *session; 20 Eina_Debug_Session *session;
@@ -390,15 +388,8 @@ WRAPPER_TO_XFER_MAIN_LOOP(_all_apps_get_cb)
390static void 388static void
391_ops_ready_cb(void *data EINA_UNUSED, Eina_Bool status) 389_ops_ready_cb(void *data EINA_UNUSED, Eina_Bool status)
392{ 390{
393 static Eina_Bool on = EINA_FALSE;
394 if (status) 391 if (status)
395 { 392 eina_debug_session_send(_session, 0, _all_apps_get_op, NULL, 0);
396 if (!on)
397 {
398 eina_debug_session_send(_session, 0, _all_apps_get_op, NULL, 0);
399 }
400 on = EINA_TRUE;
401 }
402} 393}
403 394
404static const Ecore_Getopt optdesc = { 395static 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 @@
9#include <Exactness.h> 9#include <Exactness.h>
10#include <Efl_Ui.h> 10#include <Efl_Ui.h>
11 11
12#include "exactness_private.h"
13
14#define LDIFF(x) "<b><color=#F0F>"#x"</color></b>" 12#define LDIFF(x) "<b><color=#F0F>"#x"</color></b>"
15#define RDIFF(x) "<b><color=#0FF>"#x"</color></b>" 13#define RDIFF(x) "<b><color=#0FF>"#x"</color></b>"
16 14
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)
498 d.name = t->event_name; 498 d.name = t->event_name;
499 d.legacy_is = EINA_TRUE; 499 d.legacy_is = EINA_TRUE;
500 efl_event_callback_legacy_call(o, &d, NULL); 500 efl_event_callback_legacy_call(o, &d, NULL);
501#if 0
502 /* Remove when events stuff work well */
503 Eina_Size2D sz = efl_gfx_size_get(o);
504 Eina_Position2D pos = efl_gfx_position_get(o);
505 if (!strcmp(t->event_name, "clicked") ||
506 !strcmp(t->event_name, "clicked,double"))
507 {
508 int x = pos.x + (sz.w / 2);
509 int y = pos.y + (sz.h / 2);
510 evas_event_feed_mouse_move(e, x, y, time(NULL), NULL);
511 evas_event_feed_mouse_down(e, 0, EVAS_BUTTON_NONE, time(NULL), NULL);
512 evas_event_feed_mouse_up(e, 0, EVAS_BUTTON_NONE, time(NULL), NULL);
513 if (rect)
514 {
515 evas_object_move(rect, x, y);
516 evas_object_color_set(rect, 255, 0, 0, 255);
517 }
518 if (!strcmp(t->event_name, "clicked,double"))
519 {
520 evas_event_feed_mouse_down(e, 0, EVAS_BUTTON_DOUBLE_CLICK,
521 time(NULL), NULL);
522 evas_event_feed_mouse_up(e, 0, EVAS_BUTTON_DOUBLE_CLICK,
523 time(NULL), NULL);
524 }
525 }
526#endif
527 } 501 }
528 } 502 }
529 if (!found) fprintf(stderr, "Failed finding %s.\n", t->wdg_name); 503 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 {
101 } 101 }
102 } 102 }
103 } 103 }
104 104
105 group { name: "elm/entry/selection/default"; 105 group { name: "elm/entry/selection/default";
106 parts { 106 parts {
107 part { name: "base"; type: RECT; 107 part { name: "base"; type: RECT;
@@ -111,7 +111,7 @@ collections {
111 } 111 }
112 } 112 }
113 } 113 }
114 114
115 group { name: "elm/entry/anchor/default"; 115 group { name: "elm/entry/anchor/default";
116 images.image: "horizontal_separated_bar_small_glow.png" COMP; 116 images.image: "horizontal_separated_bar_small_glow.png" COMP;
117 parts { 117 parts {
@@ -128,7 +128,7 @@ collections {
128 } 128 }
129 } 129 }
130 } 130 }
131 131
132 group { name: "elm/entry/base/default"; 132 group { name: "elm/entry/base/default";
133 sounds { 133 sounds {
134 sample { name: "key-tap1" LOSSY 64; 134 sample { name: "key-tap1" LOSSY 64;
@@ -147,7 +147,7 @@ collections {
147 source: "kbd-tap5.wav"; 147 source: "kbd-tap5.wav";
148 } 148 }
149 } 149 }
150 150
151 styles { 151 styles {
152 style { name: "entry_style"; 152 style { name: "entry_style";
153 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"; 153 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 {
275 } 275 }
276 } 276 }
277 } 277 }
278 278
279 group { name: "elm/entry/base-mixedwrap/default"; 279 group { name: "elm/entry/base-mixedwrap/default";
280 inherit: "elm/entry/base/default"; 280 inherit: "elm/entry/base/default";
281 styles { 281 styles {
@@ -325,7 +325,7 @@ collections {
325 } 325 }
326 } 326 }
327 } 327 }
328 328
329 group { name: "elm/entry/base-charwrap/default"; 329 group { name: "elm/entry/base-charwrap/default";
330 inherit: "elm/entry/base/default"; 330 inherit: "elm/entry/base/default";
331 styles { 331 styles {
@@ -375,7 +375,7 @@ collections {
375 } 375 }
376 } 376 }
377 } 377 }
378 378
379 group { name: "elm/entry/base-nowrap/default"; 379 group { name: "elm/entry/base-nowrap/default";
380 inherit: "elm/entry/base/default"; 380 inherit: "elm/entry/base/default";
381 parts { 381 parts {
@@ -411,7 +411,7 @@ collections {
411 } 411 }
412 } 412 }
413 } 413 }
414 414
415 group { name: "elm/entry/base-single/default"; 415 group { name: "elm/entry/base-single/default";
416 inherit: "elm/entry/base/default"; 416 inherit: "elm/entry/base/default";
417 styles { 417 styles {
@@ -462,7 +462,7 @@ collections {
462 } 462 }
463 } 463 }
464 } 464 }
465 465
466 group { name: "elm/entry/base-single/spinner/default"; 466 group { name: "elm/entry/base-single/spinner/default";
467 alias: "elm/entry/base-single/spinner/vertical"; 467 alias: "elm/entry/base-single/spinner/vertical";
468 inherit: "elm/entry/base-single/default"; 468 inherit: "elm/entry/base-single/default";
@@ -480,7 +480,7 @@ collections {
480 } 480 }
481 } 481 }
482 } 482 }
483 483
484 group { name: "elm/entry/base-single-noedit/default"; 484 group { name: "elm/entry/base-single-noedit/default";
485 inherit: "elm/entry/base/default"; 485 inherit: "elm/entry/base/default";
486 parts { 486 parts {
@@ -506,7 +506,7 @@ collections {
506 } 506 }
507 } 507 }
508 } 508 }
509 509
510 group { name: "elm/entry/base-noedit/default"; 510 group { name: "elm/entry/base-noedit/default";
511 inherit: "elm/entry/base/default"; 511 inherit: "elm/entry/base/default";
512 parts { 512 parts {
@@ -530,7 +530,7 @@ collections {
530 } 530 }
531 } 531 }
532 } 532 }
533 533
534 group { name: "elm/entry/base-noedit-mixedwrap/default"; 534 group { name: "elm/entry/base-noedit-mixedwrap/default";
535 inherit: "elm/entry/base/default"; 535 inherit: "elm/entry/base/default";
536 parts { 536 parts {
@@ -554,7 +554,7 @@ collections {
554 } 554 }
555 } 555 }
556 } 556 }
557 557
558 group { name: "elm/entry/base-noedit-charwrap/default"; 558 group { name: "elm/entry/base-noedit-charwrap/default";
559 inherit: "elm/entry/base/default"; 559 inherit: "elm/entry/base/default";
560 parts { 560 parts {
@@ -578,7 +578,7 @@ collections {
578 } 578 }
579 } 579 }
580 } 580 }
581 581
582 group { name: "elm/entry/base-nowrap-noedit/default"; 582 group { name: "elm/entry/base-nowrap-noedit/default";
583 inherit: "elm/entry/base/default"; 583 inherit: "elm/entry/base/default";
584 parts { 584 parts {
@@ -602,7 +602,7 @@ collections {
602 } 602 }
603 } 603 }
604 } 604 }
605 605
606 group { name: "elm/entry/base-password/default"; 606 group { name: "elm/entry/base-password/default";
607 inherit: "elm/entry/base/default"; 607 inherit: "elm/entry/base/default";
608 parts { 608 parts {
@@ -644,7 +644,7 @@ collections {
644 } 644 }
645 } 645 }
646 } 646 }
647 647
648 group { name: "elm/entry/magnifier/default"; 648 group { name: "elm/entry/magnifier/default";
649 images.image: "frame_rounded.png" COMP; 649 images.image: "frame_rounded.png" COMP;
650 parts { 650 parts {
@@ -706,7 +706,7 @@ collections {
706 } 706 }
707 } 707 }
708 } 708 }
709 709
710 group { name: "elm/entry/handler/start/default"; 710 group { name: "elm/entry/handler/start/default";
711 images.image: "handle_pick_up_left.png" COMP; 711 images.image: "handle_pick_up_left.png" COMP;
712 parts { 712 parts {
@@ -754,7 +754,7 @@ collections {
754 } 754 }
755 } 755 }
756 } 756 }
757 757
758 group { name: "elm/entry/handler/end/default"; 758 group { name: "elm/entry/handler/end/default";
759 images.image: "handle_pick_up_right.png" COMP; 759 images.image: "handle_pick_up_right.png" COMP;
760 parts { 760 parts {
@@ -802,7 +802,7 @@ collections {
802 } 802 }
803 } 803 }
804 } 804 }
805 805
806 /////////////////////////////////////////////////////////////////////////////// 806 ///////////////////////////////////////////////////////////////////////////////
807 // emoticon images from: 807 // emoticon images from:
808 // Tanya - Latvia 808 // 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)
447 goto end; 447 goto end;
448 } 448 }
449 449
450 if (strcmp(_out_filename + strlen(_out_filename) - 4,".exu"))
451 {
452 fprintf(stderr, "A file with a exu extension is required - %s invalid\n", _out_filename);
453 goto end;
454 }
455
456 if (!argv[opt_args]) 450 if (!argv[opt_args])
457 { 451 {
458 fprintf(stderr, "no program specified\nUse -h for more information\n"); 452 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)
873 873
874 return unit; 874 return unit;
875} 875}
876
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 @@
10typedef struct _Dummy 10typedef struct _Dummy
11{ 11{
12} _Dummy; 12} _Dummy;
13/*
14static Eet_Data_Descriptor *
15_mouse_in_out_desc_make(void)
16{
17 Eet_Data_Descriptor_Class eddc;
18 Eet_Data_Descriptor *_d;
19 EET_EINA_STREAM_DATA_DESCRIPTOR_CLASS_SET(&eddc, Exactness_Action_Mouse_In_Out);
20 _d = eet_data_descriptor_stream_new(&eddc);
21
22 EET_DATA_DESCRIPTOR_ADD_BASIC(_d, Exactness_Action_Mouse_In_Out, "n_evas", n_evas, EET_T_INT);
23
24 return _d;
25}
26*/
27 13
28static Eet_Data_Descriptor * 14static Eet_Data_Descriptor *
29_mouse_wheel_desc_make(void) 15_mouse_wheel_desc_make(void)
@@ -421,4 +407,3 @@ EAPI void exactness_image_free(Exactness_Image *img)
421 free(img->pixels); 407 free(img->pixels);
422 free(img); 408 free(img);
423} 409}
424