Skip to content

Commit

Permalink
ctidy: remove unused headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dimmus committed Sep 14, 2023
1 parent 981d3e8 commit e75c0a6
Show file tree
Hide file tree
Showing 39 changed files with 6 additions and 54 deletions.
1 change: 0 additions & 1 deletion src/bin/common/signals.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "history.h"
#include "signals.h"

const Signals signals = {
Expand Down
2 changes: 2 additions & 0 deletions src/bin/common/signals.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef SIGNALS_H
#define SIGNALS_H

#include "eflete.h"

typedef struct {
const struct {
const char *del;
Expand Down
1 change: 0 additions & 1 deletion src/bin/config/config.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "config.h"
#include "shortcuts.h"
#include "enventor_module.h"

#define CONFIG_FILE "eflete.cfg"
#define CONFIG_FILE_KEY "config"
Expand Down
2 changes: 0 additions & 2 deletions src/bin/editor/editor_top_level.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#define ALLOW_DIRECT_EDJE_EDIT_CALLS
#include "editor.h"
#include "editor_macro.h"
#include "change.h"
#include "diff.h"

extern int _editor_signals_blocked;

Expand Down
2 changes: 0 additions & 2 deletions src/bin/eflete.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/

#include "eflete.h"
#include "main_window.h"
#include "shortcuts.h"
#include "config.h"
#include "syntax_color.h"

Expand Down
1 change: 0 additions & 1 deletion src/bin/exporter/eflete_exporter.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "eflete_config.h"
#endif

#include "common_macro.h"
#include "logger.h"
#include <assert.h>

Expand Down
3 changes: 0 additions & 3 deletions src/bin/external/enventor_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
* along with this program; If not, see www.gnu.org/licenses/lgpl.html.
*/

#include "project_manager2.h"
#include "enventor_module.h"

#ifdef HAVE_ENVENTOR

#define MAX_SCALE 3.0
Expand Down
2 changes: 0 additions & 2 deletions src/bin/project_manager/group_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/

#include "project_manager2.h"
#include "widget_list.h"

#include "group_manager.h"
#include "group_manager_resources.h"

Expand Down
3 changes: 0 additions & 3 deletions src/bin/resource_manager/resource_manager_build.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#include "resource_manager2.h"
#include "resource_manager_private.h"
#include "project_manager2.h"
#include "string_common.h"

/***********************************************/

Eina_Bool
_resource_usage_resource_add(Resource2 *origin, Resource2 *used)
Expand Down
1 change: 0 additions & 1 deletion src/bin/resource_manager/resource_manager_load.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "resource_manager2.h"
#include "resource_manager_private.h"
#include "project_manager2.h"
#include "string_common.h"

Eina_Bool
_global_data_resources_load(Project *project)
Expand Down
1 change: 0 additions & 1 deletion src/bin/resource_manager/resource_manager_react.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "resource_manager_private.h"
#include "project_manager2.h"
#include "tabs.h"
#include "string_common.h"

/* CALLBACK FUNCTIONS */

Expand Down
2 changes: 0 additions & 2 deletions src/bin/ui/history_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#include "change.h"
#include "project_manager2.h"
#include "history.h"
#include "widget_macro.h"
#include "main_window.h"
#include "shortcuts.h"

typedef struct {
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/live_view/elementary/live_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "live_elementary_widgets.h"
#include "widget_macro.h"

static void
_on_frame_swallow_check(void *data EINA_UNUSED,
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/live_view/elementary/live_genlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "live_elementary_widgets.h"
#include "widget_macro.h"

static void
_on_genlist_swallow_check(void *data EINA_UNUSED,
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/live_view/elementary/live_popup.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "live_elementary_widgets.h"
#include "main_window.h" /* strlen_safe */

static void
_on_popup_swallow_check(void *data EINA_UNUSED,
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/live_view/elementary/live_slider.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "live_elementary_widgets.h"
#include "main_window.h" /* strlen_safe */

Evas_Object *
widget_slider_create(Evas_Object *parent, const Group2 *group)
Expand Down
2 changes: 1 addition & 1 deletion src/bin/ui/main_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#ifdef HAVE_CONFIG_H
#include "eflete_config.h"
#endif /* include eflete_config.h */
#endif

#include "main_window.h"
#include "history_ui.h"
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/menu.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "main_window.h"
#include "tabs.h"
#include "workspace.h"
#include "shortcuts.h"
#include "project_manager2.h"

Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/popup.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "main_window.h"
#include "widget_macro.h"
#include "project_manager2.h"
#include "config.h"
#include "shortcuts.h"
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/property/property_color_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "property.h"
#include "property_private.h"
#include "main_window.h"

typedef struct {
int r, g, b, a;
Expand Down
2 changes: 0 additions & 2 deletions src/bin/ui/property/property_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#include "property.h"
#include "property_private.h"
#include "property_common.h"
#include "widget_macro.h"
#include "sound_player.h"
#include "shortcuts.h"
#include "main_window.h"

/* hack to disable spinner value changes when scrolling */
static void
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/property/property_common_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "property.h"
#include "property_private.h"
#include "main_window.h"

static Eina_Bool
_on_image_editor_done(void *data,
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/property/property_common_tween.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "property.h"
#include "property_private.h"
#include "main_window.h"
#include "project_manager2.h"

/* gengrid base functions */
Expand Down
2 changes: 0 additions & 2 deletions src/bin/ui/property/property_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,11 @@

#include "property.h"
#include "property_private.h"
#include "group_manager.h"
#include "history.h"
#include "change.h"
#include "project_manager2.h"
#include "validator.h"
#include "shortcuts.h"
#include "string_common.h"

#define PART_MASK(TYPE) (1u << TYPE)
#define PART_RECTANGLE PART_MASK(EDJE_PART_TYPE_RECTANGLE)
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/property/property_image_selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "property.h"
#include "property_private.h"
#include "main_window.h"

static Eina_Bool
_on_image_done(void *data,
Expand Down
2 changes: 1 addition & 1 deletion src/bin/ui/property/property_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "main_window.h"
#include "syntax_color.h"

#include "property.h"

#ifndef PROPERTY_PRIVATE_H
#define PROPERTY_PRIVATE_H
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/property/property_script.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "property.h"
#include "property_private.h"
#include "main_window.h"

static void
_btn_script_manager_cb(void *data,
Expand Down
2 changes: 0 additions & 2 deletions src/bin/ui/property/property_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include "property.h"
#include "property_private.h"
#include "sound_player.h"
#include "main_window.h"
#include "project_manager2.h"

#define SOUND_MASK(TYPE) (1u << TYPE)
#define SOUND_SAMPLE SOUND_MASK(SOUND_TYPE_SAMPLE)
Expand Down
3 changes: 0 additions & 3 deletions src/bin/ui/script_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
#endif

#include "modal_window.h"
#include "property.h"
#include "property_private.h"
#include "history.h"
#include "change.h"
#include "syntax_color.h"
#include "eflete.h"

typedef struct _Script_Manager Script_Manager;

Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/splash.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "main_window.h"
#include "widget_macro.h"

struct _Splash_Data
{
Expand Down
2 changes: 0 additions & 2 deletions src/bin/ui/tab_home_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@
*/

#include "tabs_private.h"
#include "tabs.h"
#include "main_window.h"
#include "project_navigator.h"
#include "config.h"
#include "project_common.h"
#include "widget_list.h"

void
meta_controls_add(Evas_Object *layout, Meta_Data_Controls *meta)
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/tab_home_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "tabs_private.h"
#include "tabs.h"
#include "main_window.h"

struct _Tab_Home_Info
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/tabs.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "workspace.h"
#include "tabs.h"
#include "history.h"
#include "project_manager2.h"
#include "main_window.h"
#include "change.h"

Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/workspace/groupview.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "groupview.h"
#include "groupview_private.h"
#include "cursor.h"
#include "project_manager2.h"

#define MY_CLASS_NAME "Groupview"
Expand Down
1 change: 0 additions & 1 deletion src/bin/ui/workspace/workspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "main_window.h"
#include "groupview.h"
#include "container.h"
#include "eflete.h"
#include "group_navigator.h"
#include "history.h"
#include "history_ui.h"
Expand Down
1 change: 0 additions & 1 deletion tests/test_alloc/mem_malloc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "test_alloc.h"

/**
Expand Down
2 changes: 0 additions & 2 deletions tests/test_alloc/test_alloc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

// #include "utc_common.h"
#include "config.h"

#include "../eflete_check.h"
Expand Down
2 changes: 2 additions & 0 deletions tests/test_change/change_diff_add.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#include <stdbool.h>

#include "test_change.h"

/**
Expand Down
3 changes: 0 additions & 3 deletions tests/test_change/test_change.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

// #include "utc_common.h"
#include "config.h"
#include "change.h"
#include "diff.h"

Expand Down

0 comments on commit e75c0a6

Please sign in to comment.