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_evas_init();
|
||||
evas_init();
|
||||
mode_play = mode_init = mode_simulation = EINA_FALSE;
|
||||
want_quit = EINA_FALSE;
|
||||
_dest_dir = "./";
|
||||
_scan_objs = scan_objs;
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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>"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -873,4 +873,3 @@ legacy_rec_file_read(const char *filename)
|
|||
|
||||
return unit;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue