forked from enlightenment/efl
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:
parent
93bdf120d0
commit
6a4e297ec8
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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>"
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -101,7 +101,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/selection/default";
|
group { name: "elm/entry/selection/default";
|
||||||
parts {
|
parts {
|
||||||
part { name: "base"; type: RECT;
|
part { name: "base"; type: RECT;
|
||||||
|
@ -111,7 +111,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/anchor/default";
|
group { name: "elm/entry/anchor/default";
|
||||||
images.image: "horizontal_separated_bar_small_glow.png" COMP;
|
images.image: "horizontal_separated_bar_small_glow.png" COMP;
|
||||||
parts {
|
parts {
|
||||||
|
@ -128,7 +128,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base/default";
|
group { name: "elm/entry/base/default";
|
||||||
sounds {
|
sounds {
|
||||||
sample { name: "key-tap1" LOSSY 64;
|
sample { name: "key-tap1" LOSSY 64;
|
||||||
|
@ -147,7 +147,7 @@ collections {
|
||||||
source: "kbd-tap5.wav";
|
source: "kbd-tap5.wav";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
styles {
|
styles {
|
||||||
style { name: "entry_style";
|
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";
|
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";
|
group { name: "elm/entry/base-mixedwrap/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
styles {
|
styles {
|
||||||
|
@ -325,7 +325,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-charwrap/default";
|
group { name: "elm/entry/base-charwrap/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
styles {
|
styles {
|
||||||
|
@ -375,7 +375,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-nowrap/default";
|
group { name: "elm/entry/base-nowrap/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -411,7 +411,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-single/default";
|
group { name: "elm/entry/base-single/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
styles {
|
styles {
|
||||||
|
@ -462,7 +462,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-single/spinner/default";
|
group { name: "elm/entry/base-single/spinner/default";
|
||||||
alias: "elm/entry/base-single/spinner/vertical";
|
alias: "elm/entry/base-single/spinner/vertical";
|
||||||
inherit: "elm/entry/base-single/default";
|
inherit: "elm/entry/base-single/default";
|
||||||
|
@ -480,7 +480,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-single-noedit/default";
|
group { name: "elm/entry/base-single-noedit/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -506,7 +506,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-noedit/default";
|
group { name: "elm/entry/base-noedit/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -530,7 +530,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-noedit-mixedwrap/default";
|
group { name: "elm/entry/base-noedit-mixedwrap/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -554,7 +554,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-noedit-charwrap/default";
|
group { name: "elm/entry/base-noedit-charwrap/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -578,7 +578,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-nowrap-noedit/default";
|
group { name: "elm/entry/base-nowrap-noedit/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -602,7 +602,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/base-password/default";
|
group { name: "elm/entry/base-password/default";
|
||||||
inherit: "elm/entry/base/default";
|
inherit: "elm/entry/base/default";
|
||||||
parts {
|
parts {
|
||||||
|
@ -644,7 +644,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/magnifier/default";
|
group { name: "elm/entry/magnifier/default";
|
||||||
images.image: "frame_rounded.png" COMP;
|
images.image: "frame_rounded.png" COMP;
|
||||||
parts {
|
parts {
|
||||||
|
@ -706,7 +706,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/handler/start/default";
|
group { name: "elm/entry/handler/start/default";
|
||||||
images.image: "handle_pick_up_left.png" COMP;
|
images.image: "handle_pick_up_left.png" COMP;
|
||||||
parts {
|
parts {
|
||||||
|
@ -754,7 +754,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group { name: "elm/entry/handler/end/default";
|
group { name: "elm/entry/handler/end/default";
|
||||||
images.image: "handle_pick_up_right.png" COMP;
|
images.image: "handle_pick_up_right.png" COMP;
|
||||||
parts {
|
parts {
|
||||||
|
@ -802,7 +802,7 @@ collections {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// emoticon images from:
|
// emoticon images from:
|
||||||
// Tanya - Latvia
|
// Tanya - Latvia
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -873,4 +873,3 @@ legacy_rec_file_read(const char *filename)
|
||||||
|
|
||||||
return unit;
|
return unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue