From cc61bfa71b1f72049970dd119ec14d9ac108a1ef Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 16 Sep 2015 12:18:25 +1200 Subject: Removed unneeded include guards --- bat_tray.h | 5 ----- common.h | 4 ---- config_file.h | 5 ----- defaults.h | 5 ----- getcore.h | 5 ----- getfreq.h | 5 ----- getgov.h | 5 ----- paramano.h | 5 ----- paramano_set_interface.h | 5 ----- tray.h | 5 ----- 10 files changed, 49 deletions(-) diff --git a/bat_tray.h b/bat_tray.h index 78ba8ff..78e8970 100644 --- a/bat_tray.h +++ b/bat_tray.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef BAT_TRAY_H -#define BAT_TRAY_H - #define STATE_CHARGING 0 #define STATE_DISCHARGING 1 #define STATE_CHARGED 2 @@ -30,5 +27,3 @@ void bat_tray_show(); void bat_tray_hide(); int get_battery_state(); int get_bat_num(); - -#endif /* ifndef BAT_TRAY_H */ diff --git a/common.h b/common.h index b672e0d..26f5818 100644 --- a/common.h +++ b/common.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef COMMON_H -#define COMMON_H - #include int get_int_value_from_filef(const char* format, ...); @@ -35,4 +32,3 @@ int get_int(const char* string); #define info(...) printf("INFO: "__FILE__":"STR_LINE" --- "__VA_ARGS__) #define FILE_PATH_SIZE 2048 -#endif /* ifndef COMMON_H */ diff --git a/config_file.h b/config_file.h index c9d964a..736397d 100644 --- a/config_file.h +++ b/config_file.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef CONFIG_FILE_H -#define CONFIG_FILE_H - #include #include @@ -31,5 +28,3 @@ struct config_file gboolean config_open(struct config_file* config_file); void config_close(struct config_file* config_file); gchar* config_get_key(struct config_file* config_file, const gchar* group_name, const gchar* key_name); - -#endif /* ifndef CONFIG_FILE_H */ diff --git a/defaults.h b/defaults.h index 2a4515b..0dda432 100644 --- a/defaults.h +++ b/defaults.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef DEFAULTS_H -#define DEFAULTS_H - #include char* DEFAULT_GOV; @@ -31,5 +28,3 @@ char DEFAULT_THEME[1024]; void defaults_init(); - -#endif /* ifndef DEFAULTS_H */ diff --git a/getcore.h b/getcore.h index ecdca9d..5dc7c9b 100644 --- a/getcore.h +++ b/getcore.h @@ -16,10 +16,5 @@ * . * ************************************************************************/ -#ifndef GETCORE_H -#define GETCORE_H - void gc_init(); unsigned int gc_number(); - -#endif /* ifndef GETCORE_H */ diff --git a/getfreq.h b/getfreq.h index f13a9e9..00a428f 100644 --- a/getfreq.h +++ b/getfreq.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef GETFREQ_H -#define GETFREQ_H - #include void gf_init(); @@ -28,5 +25,3 @@ void gf_get_frequency_label(char* buffer, size_t max_size, int freq); char* gf_freqa(int core, int index); int gf_freqi(int core, int index); unsigned int gf_number(); - -#endif /* ifndef GETFREQ_H */ diff --git a/getgov.h b/getgov.h index 5a5d8d8..2427155 100644 --- a/getgov.h +++ b/getgov.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef GETGOV_H -#define GETGOV_H - #include void gg_init(); @@ -26,5 +23,3 @@ bool gg_current(int core, char* out, int size); bool gg_available(int core, char* out, int size); char* gg_gov(int core, int index); unsigned int gg_number(); - -#endif /* ifndef GETGOV_H */ diff --git a/paramano.h b/paramano.h index 5227aa0..e23fac5 100644 --- a/paramano.h +++ b/paramano.h @@ -16,9 +16,4 @@ * . * ************************************************************************/ -#ifndef PARAMANO_H -#define PARAMANO_H - void config_init(); - -#endif /* ifndef PARAMANO_H */ diff --git a/paramano_set_interface.h b/paramano_set_interface.h index d533285..a3f27cb 100644 --- a/paramano_set_interface.h +++ b/paramano_set_interface.h @@ -16,10 +16,5 @@ * . * ************************************************************************/ -#ifndef PARAMANO_SET_INTERFACE_H -#define PARAMANO_SET_INTERFACE_H - void si_gov(char* gov, int core); void si_freq(int freq, int core); - -#endif /* ifndef PARAMANO_SET_INTERFACE_H */ diff --git a/tray.h b/tray.h index 3c519a6..6cf456c 100644 --- a/tray.h +++ b/tray.h @@ -16,9 +16,6 @@ * . * ************************************************************************/ -#ifndef TRAY_H -#define TRAY_H - #include void tray_set_defaults(); @@ -27,5 +24,3 @@ void tray_show(); void tray_hide(); bool tray_visible(); bool tray_embedded(); - -#endif /* ifndef TRAY_H */ -- cgit v1.1