diff options
author | Daniel Kolesa <d.kolesa@samsung.com> | 2018-05-13 17:28:47 +0200 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@samsung.com> | 2018-05-13 17:28:47 +0200 |
commit | 6be3809c04fad847e353edecf5b6eef3c8766df4 (patch) | |
tree | 3ea4e72abebffd2446192829b510bef8ca0cfadb /src/lib | |
parent | 1f4f7e859795c175fddcdceafc25ee89ac78511b (diff) |
eolian: first batch of unused import removals
Initial results of our static analysis showed a bunch of unused
imports or imports used only for documentation references. In the
first case, remove entirely, in the second case, change to 'parse'
in order to keep references working.
The static analysis is not perfect and yields false negatives for
certain cases, so there will be a second batch later.
Diffstat (limited to '')
28 files changed, 5 insertions, 33 deletions
diff --git a/src/lib/ecore/ecore_event_message.eo b/src/lib/ecore/ecore_event_message.eo index c1359b005f..57d3848be7 100644 --- a/src/lib/ecore/ecore_event_message.eo +++ b/src/lib/ecore/ecore_event_message.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Ecore.Event.Message (Efl.Loop_Message) | 3 | class Ecore.Event.Message (Efl.Loop_Message) |
diff --git a/src/lib/ecore/ecore_event_message_handler.eo b/src/lib/ecore/ecore_event_message_handler.eo index 2601ae9e8f..b12e6f87c5 100644 --- a/src/lib/ecore/ecore_event_message_handler.eo +++ b/src/lib/ecore/ecore_event_message_handler.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Ecore.Event.Message.Handler (Efl.Loop_Message_Handler) | 3 | class Ecore.Event.Message.Handler (Efl.Loop_Message_Handler) |
diff --git a/src/lib/ecore/efl_appthread.eo b/src/lib/ecore/efl_appthread.eo index 67de1c7c73..58984ed50f 100644 --- a/src/lib/ecore/efl_appthread.eo +++ b/src/lib/ecore/efl_appthread.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Efl.Appthread (Efl.Loop, Efl.ThreadIO) | 3 | class Efl.Appthread (Efl.Loop, Efl.ThreadIO) |
diff --git a/src/lib/ecore/efl_exe.eo b/src/lib/ecore/efl_exe.eo index 4fd5854fa4..59b8991247 100644 --- a/src/lib/ecore/efl_exe.eo +++ b/src/lib/ecore/efl_exe.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | enum Efl.Exe.Signal { | 3 | enum Efl.Exe.Signal { |
diff --git a/src/lib/ecore/efl_loop.eo b/src/lib/ecore/efl_loop.eo index e1d5c3f167..7006e692a0 100644 --- a/src/lib/ecore/efl_loop.eo +++ b/src/lib/ecore/efl_loop.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | struct Efl.Loop_Arguments { | 3 | struct Efl.Loop_Arguments { |
diff --git a/src/lib/ecore/efl_loop_message.eo b/src/lib/ecore/efl_loop_message.eo index 57a81c522b..a8079266ce 100644 --- a/src/lib/ecore/efl_loop_message.eo +++ b/src/lib/ecore/efl_loop_message.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Efl.Loop_Message (Efl.Object) | 3 | class Efl.Loop_Message (Efl.Object) |
diff --git a/src/lib/ecore/efl_loop_message_future.eo b/src/lib/ecore/efl_loop_message_future.eo index ec90dcf5ac..02d8cb471d 100644 --- a/src/lib/ecore/efl_loop_message_future.eo +++ b/src/lib/ecore/efl_loop_message_future.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Efl.Loop_Message_Future (Efl.Loop_Message) | 3 | class Efl.Loop_Message_Future (Efl.Loop_Message) |
diff --git a/src/lib/ecore/efl_loop_message_future_handler.eo b/src/lib/ecore/efl_loop_message_future_handler.eo index cc0f5a8138..06ccb548bc 100644 --- a/src/lib/ecore/efl_loop_message_future_handler.eo +++ b/src/lib/ecore/efl_loop_message_future_handler.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Efl.Loop_Message_Future_Handler (Efl.Loop_Message_Handler) | 3 | class Efl.Loop_Message_Future_Handler (Efl.Loop_Message_Handler) |
diff --git a/src/lib/ecore/efl_loop_message_handler.eo b/src/lib/ecore/efl_loop_message_handler.eo index 9d955195d5..7888fbcc93 100644 --- a/src/lib/ecore/efl_loop_message_handler.eo +++ b/src/lib/ecore/efl_loop_message_handler.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Efl.Loop_Message_Handler (Efl.Object) | 3 | class Efl.Loop_Message_Handler (Efl.Object) |
diff --git a/src/lib/ecore/efl_task.eo b/src/lib/ecore/efl_task.eo index 3d4e6e9b58..0c6a4c1cb6 100644 --- a/src/lib/ecore/efl_task.eo +++ b/src/lib/ecore/efl_task.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | enum Efl.Task.Priority { | 3 | enum Efl.Task.Priority { |
diff --git a/src/lib/ecore/efl_thread.eo b/src/lib/ecore/efl_thread.eo index 15f8173395..b3b6cc0dc9 100644 --- a/src/lib/ecore/efl_thread.eo +++ b/src/lib/ecore/efl_thread.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_types; | ||
2 | import eina_types; | 1 | import eina_types; |
3 | 2 | ||
4 | class Efl.Thread (Efl.Task, Efl.ThreadIO) | 3 | class Efl.Thread (Efl.Task, Efl.ThreadIO) |
diff --git a/src/lib/ecore/efl_threadio.eo b/src/lib/ecore/efl_threadio.eo index bfb7e26d46..8cca7289d8 100644 --- a/src/lib/ecore/efl_threadio.eo +++ b/src/lib/ecore/efl_threadio.eo | |||
@@ -1,4 +1,4 @@ | |||
1 | import efl_types; | 1 | import efl_object; |
2 | import eina_types; | 2 | import eina_types; |
3 | 3 | ||
4 | function EFlThreadIOCall { | 4 | function EFlThreadIOCall { |
diff --git a/src/lib/ecore_con/efl_net_control_technology.eo b/src/lib/ecore_con/efl_net_control_technology.eo index eecf21af0c..bbf7af81ea 100644 --- a/src/lib/ecore_con/efl_net_control_technology.eo +++ b/src/lib/ecore_con/efl_net_control_technology.eo | |||
@@ -1,5 +1,3 @@ | |||
1 | import efl_net_control_access_point; | ||
2 | |||
3 | enum Efl.Net.Control.Technology_Type { | 1 | enum Efl.Net.Control.Technology_Type { |
4 | [[Technology types | 2 | [[Technology types |
5 | 3 | ||
diff --git a/src/lib/edje/efl_canvas_layout.eo b/src/lib/edje/efl_canvas_layout.eo index 2610ab21f0..62c16c5c93 100644 --- a/src/lib/edje/efl_canvas_layout.eo +++ b/src/lib/edje/efl_canvas_layout.eo | |||
@@ -1,5 +1,3 @@ | |||
1 | import edje_types; | ||
2 | |||
3 | // FIXME: This EO doc needs a direct link to the "edcref" doc | 1 | // FIXME: This EO doc needs a direct link to the "edcref" doc |
4 | 2 | ||
5 | class Efl.Canvas.Layout (Efl.Canvas.Group, Efl.File, Efl.Container, Efl.Part, | 3 | class Efl.Canvas.Layout (Efl.Canvas.Group, Efl.File, Efl.Container, Efl.Part, |
diff --git a/src/lib/edje/efl_layout_group.eo b/src/lib/edje/efl_layout_group.eo index a3334cc7c1..864a3a86c9 100644 --- a/src/lib/edje/efl_layout_group.eo +++ b/src/lib/edje/efl_layout_group.eo | |||
@@ -1,5 +1,4 @@ | |||
1 | import eina_types; | 1 | import eina_types; |
2 | import edje_types; | ||
3 | 2 | ||
4 | interface Efl.Layout.Group | 3 | interface Efl.Layout.Group |
5 | { | 4 | { |
diff --git a/src/lib/efl/interfaces/efl_gfx_entity.eo b/src/lib/efl/interfaces/efl_gfx_entity.eo index 5133c80c9d..b304a3ed10 100644 --- a/src/lib/efl/interfaces/efl_gfx_entity.eo +++ b/src/lib/efl/interfaces/efl_gfx_entity.eo | |||
@@ -1,5 +1,4 @@ | |||
1 | import eina_types; | 1 | import eina_types; |
2 | import efl_gfx_types; | ||
3 | 2 | ||
4 | interface Efl.Gfx.Entity { | 3 | interface Efl.Gfx.Entity { |
5 | [[Efl graphics interface]] | 4 | [[Efl graphics interface]] |
diff --git a/src/lib/efl/interfaces/efl_gfx_image.eo b/src/lib/efl/interfaces/efl_gfx_image.eo index f71c23fe0b..6a0d10cdf1 100644 --- a/src/lib/efl/interfaces/efl_gfx_image.eo +++ b/src/lib/efl/interfaces/efl_gfx_image.eo | |||
@@ -1,5 +1,4 @@ | |||
1 | import efl_gfx_types; | 1 | import efl_gfx_types; |
2 | import efl_gfx_fill; | ||
3 | 2 | ||
4 | enum Efl.Gfx.Image_Content_Hint | 3 | enum Efl.Gfx.Image_Content_Hint |
5 | { | 4 | { |
diff --git a/src/lib/efl/interfaces/efl_orientation.eo b/src/lib/efl/interfaces/efl_orientation.eo index 087de1bc5d..4f83c25c97 100644 --- a/src/lib/efl/interfaces/efl_orientation.eo +++ b/src/lib/efl/interfaces/efl_orientation.eo | |||
@@ -1,4 +1,4 @@ | |||
1 | import efl_ui_direction; // For documentation references | 1 | parse efl_ui_direction; |
2 | 2 | ||
3 | enum Efl.Orient | 3 | enum Efl.Orient |
4 | { | 4 | { |
diff --git a/src/lib/efl/interfaces/efl_pack_table.eo b/src/lib/efl/interfaces/efl_pack_table.eo index 335b269b36..33323ac5ae 100644 --- a/src/lib/efl/interfaces/efl_pack_table.eo +++ b/src/lib/efl/interfaces/efl_pack_table.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_gfx_types; | ||
2 | import efl_ui_direction; | 1 | import efl_ui_direction; |
3 | 2 | ||
4 | interface Efl.Pack_Table (Efl.Pack_Linear) | 3 | interface Efl.Pack_Table (Efl.Pack_Linear) |
diff --git a/src/lib/efl/interfaces/efl_text_annotate.eo b/src/lib/efl/interfaces/efl_text_annotate.eo index bb407259cd..f22209ec39 100644 --- a/src/lib/efl/interfaces/efl_text_annotate.eo +++ b/src/lib/efl/interfaces/efl_text_annotate.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import eina_types; | ||
2 | import efl_text_types; | 1 | import efl_text_types; |
3 | 2 | ||
4 | interface Efl.Text_Annotate { | 3 | interface Efl.Text_Annotate { |
diff --git a/src/lib/efl/interfaces/efl_ui_direction.eo b/src/lib/efl/interfaces/efl_ui_direction.eo index de0cda082d..78bf2cdeda 100644 --- a/src/lib/efl/interfaces/efl_ui_direction.eo +++ b/src/lib/efl/interfaces/efl_ui_direction.eo | |||
@@ -1,7 +1,7 @@ | |||
1 | // FIXME: Documentation lacks proper references due to cyclic imports. | 1 | // FIXME: Documentation lacks proper references due to cyclic imports. |
2 | // FIXME: What about AnyRTL? And other strange directions? | 2 | // FIXME: What about AnyRTL? And other strange directions? |
3 | 3 | ||
4 | import efl_orientation; | 4 | parse efl_orientation; |
5 | 5 | ||
6 | enum Efl.Ui.Dir | 6 | enum Efl.Ui.Dir |
7 | { | 7 | { |
diff --git a/src/lib/efl/interfaces/efl_ui_format.eo b/src/lib/efl/interfaces/efl_ui_format.eo index 88f3962e8e..e78478e8bd 100644 --- a/src/lib/efl/interfaces/efl_ui_format.eo +++ b/src/lib/efl/interfaces/efl_ui_format.eo | |||
@@ -1,5 +1,3 @@ | |||
1 | import eina_types; | ||
2 | |||
3 | function Efl.Ui.Format_Func_Cb { | 1 | function Efl.Ui.Format_Func_Cb { |
4 | [[Function pointer for format function hook]] | 2 | [[Function pointer for format function hook]] |
5 | params { | 3 | params { |
diff --git a/src/lib/eldbus/eldbus_types.eot b/src/lib/eldbus/eldbus_types.eot index f68868c88a..ebd3130a43 100644 --- a/src/lib/eldbus/eldbus_types.eot +++ b/src/lib/eldbus/eldbus_types.eot | |||
@@ -1,5 +1,3 @@ | |||
1 | import eina_types; | ||
2 | |||
3 | struct Eldbus.Proxy; [[Represents a client object bound to an interface]] | 1 | struct Eldbus.Proxy; [[Represents a client object bound to an interface]] |
4 | struct Eldbus.Connection; [[Represents a connection of one the type of connection with the DBus daemon.]] | 2 | struct Eldbus.Connection; [[Represents a connection of one the type of connection with the DBus daemon.]] |
5 | struct Eldbus.Object; [[Represents an object path already attached with bus name or unique id]] | 3 | struct Eldbus.Object; [[Represents an object path already attached with bus name or unique id]] |
diff --git a/src/lib/elementary/efl_ui_flip.eo b/src/lib/elementary/efl_ui_flip.eo index fd20daf998..7e9da0c8fb 100644 --- a/src/lib/elementary/efl_ui_flip.eo +++ b/src/lib/elementary/efl_ui_flip.eo | |||
@@ -1,3 +1,5 @@ | |||
1 | import efl_ui_direction; | ||
2 | |||
1 | enum Efl.Ui.Flip_Mode | 3 | enum Efl.Ui.Flip_Mode |
2 | { | 4 | { |
3 | [[Efl UI flip mode ]] | 5 | [[Efl UI flip mode ]] |
diff --git a/src/lib/elementary/elm_box.eo b/src/lib/elementary/elm_box.eo index c7280482f9..72ce67184d 100644 --- a/src/lib/elementary/elm_box.eo +++ b/src/lib/elementary/elm_box.eo | |||
@@ -1,5 +1,3 @@ | |||
1 | import evas_box; | ||
2 | |||
3 | class Elm.Box (Efl.Ui.Widget, Efl.Ui.Focus.Composition, Efl.Ui.Legacy) | 1 | class Elm.Box (Efl.Ui.Widget, Efl.Ui.Focus.Composition, Efl.Ui.Legacy) |
4 | { | 2 | { |
5 | [[Elementary box class]] | 3 | [[Elementary box class]] |
diff --git a/src/lib/elementary/elm_code_widget.eo b/src/lib/elementary/elm_code_widget.eo index d3b9dd4279..1353eb64e4 100644 --- a/src/lib/elementary/elm_code_widget.eo +++ b/src/lib/elementary/elm_code_widget.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import edje_types; | ||
2 | import elm_interface_scrollable; | 1 | import elm_interface_scrollable; |
3 | import elm_general; | 2 | import elm_general; |
4 | 3 | ||
diff --git a/src/lib/evas/canvas/efl_input_pointer.eo b/src/lib/evas/canvas/efl_input_pointer.eo index 3628552951..03516b62a7 100644 --- a/src/lib/evas/canvas/efl_input_pointer.eo +++ b/src/lib/evas/canvas/efl_input_pointer.eo | |||
@@ -1,4 +1,3 @@ | |||
1 | import efl_orientation; | ||
2 | import efl_input_types; | 1 | import efl_input_types; |
3 | 2 | ||
4 | class Efl.Input.Pointer (Efl.Object, Efl.Input.Event, Efl.Input.State) | 3 | class Efl.Input.Pointer (Efl.Object, Efl.Input.Event, Efl.Input.State) |
diff --git a/src/lib/evas/include/evas_ector_buffer.eo b/src/lib/evas/include/evas_ector_buffer.eo index 77f66a3d5b..8801c5aecb 100644 --- a/src/lib/evas/include/evas_ector_buffer.eo +++ b/src/lib/evas/include/evas_ector_buffer.eo | |||
@@ -1,5 +1,3 @@ | |||
1 | import evas_canvas; | ||
2 | |||
3 | interface Evas.Ector.Buffer | 1 | interface Evas.Ector.Buffer |
4 | { | 2 | { |
5 | [[Binding layer between ector buffers and evas images. | 3 | [[Binding layer between ector buffers and evas images. |