exactness: remove unused code

Either commented out, blank lines or no needed includes.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D11288
This commit is contained in:
Stefan Schmidt 2020-01-31 13:32:24 +01:00
parent 93bdf120d0
commit 6a4e297ec8
8 changed files with 20 additions and 81 deletions

View File

@ -491,8 +491,6 @@ main(int argc, char *argv[])
ecore_init(); ecore_init();
ecore_evas_init(); ecore_evas_init();
evas_init(); evas_init();
mode_play = mode_init = mode_simulation = EINA_FALSE;
want_quit = EINA_FALSE;
_dest_dir = "./"; _dest_dir = "./";
_scan_objs = scan_objs; _scan_objs = scan_objs;

View File

@ -15,8 +15,6 @@
#include <Exactness.h> #include <Exactness.h>
#include "exactness_private.h"
typedef struct typedef struct
{ {
Eina_Debug_Session *session; Eina_Debug_Session *session;
@ -390,15 +388,8 @@ WRAPPER_TO_XFER_MAIN_LOOP(_all_apps_get_cb)
static void static void
_ops_ready_cb(void *data EINA_UNUSED, Eina_Bool status) _ops_ready_cb(void *data EINA_UNUSED, Eina_Bool status)
{ {
static Eina_Bool on = EINA_FALSE;
if (status) if (status)
{ eina_debug_session_send(_session, 0, _all_apps_get_op, NULL, 0);
if (!on)
{
eina_debug_session_send(_session, 0, _all_apps_get_op, NULL, 0);
}
on = EINA_TRUE;
}
} }
static const Ecore_Getopt optdesc = { static const Ecore_Getopt optdesc = {

View File

@ -9,8 +9,6 @@
#include <Exactness.h> #include <Exactness.h>
#include <Efl_Ui.h> #include <Efl_Ui.h>
#include "exactness_private.h"
#define LDIFF(x) "<b><color=#F0F>"#x"</color></b>" #define LDIFF(x) "<b><color=#F0F>"#x"</color></b>"
#define RDIFF(x) "<b><color=#0FF>"#x"</color></b>" #define RDIFF(x) "<b><color=#0FF>"#x"</color></b>"

View File

@ -498,32 +498,6 @@ _feed_event(Exactness_Action_Type type, unsigned int n_evas, void *data)
d.name = t->event_name; d.name = t->event_name;
d.legacy_is = EINA_TRUE; d.legacy_is = EINA_TRUE;
efl_event_callback_legacy_call(o, &d, NULL); 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); if (!found) fprintf(stderr, "Failed finding %s.\n", t->wdg_name);

View File

@ -447,12 +447,6 @@ int main(int argc, char **argv)
goto end; 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]) if (!argv[opt_args])
{ {
fprintf(stderr, "no program specified\nUse -h for more information\n"); fprintf(stderr, "no program specified\nUse -h for more information\n");

View File

@ -873,4 +873,3 @@ legacy_rec_file_read(const char *filename)
return unit; return unit;
} }

View File

@ -10,20 +10,6 @@
typedef struct _Dummy typedef struct _Dummy
{ {
} _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 * static Eet_Data_Descriptor *
_mouse_wheel_desc_make(void) _mouse_wheel_desc_make(void)
@ -421,4 +407,3 @@ EAPI void exactness_image_free(Exactness_Image *img)
free(img->pixels); free(img->pixels);
free(img); free(img);
} }