aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Allen <axlecrusher@gmail.com>2017-03-06 22:21:15 -0500
committerJoshua Allen <axlecrusher@gmail.com>2017-03-06 22:21:15 -0500
commita7b423ba1f0b28d0e6f3f375475cf93d66b922c9 (patch)
treee1870d294a436b8e50151154b04cb2cc3ad29a3d
parent0ebe84be5824202aecfd87ac58005afa76b36be9 (diff)
downloadlibsurvive-a7b423ba1f0b28d0e6f3f375475cf93d66b922c9.tar.gz
libsurvive-a7b423ba1f0b28d0e6f3f375475cf93d66b922c9.tar.bz2
remove unused function
-rw-r--r--src/survive_config.c9
-rw-r--r--src/survive_config.h1
2 files changed, 1 insertions, 9 deletions
diff --git a/src/survive_config.c b/src/survive_config.c
index d91596f..83951fb 100644
--- a/src/survive_config.c
+++ b/src/survive_config.c
@@ -14,7 +14,7 @@ config_group lh_config[MAX_LIGHTHOUSES]; //lighthouse configs
//static uint16_t used_entries = 0;
-static FILE *config_file = NULL;
+//static FILE *config_file = NULL;
const FLT* config_set_float_a(config_group *cg, const char *tag, const FLT* values, uint8_t count);
void init_config_group(config_group *cg, uint16_t count) {
@@ -39,13 +39,6 @@ void config_init() {
}
}
-void config_load(const char* path) {
- config_file = fopen(path, "r");
-}
-
-void config_close() {
- fclose(config_file);
-}
void config_set_lighthouse(struct BaseStationData* bsd, uint8_t idx) {
config_group *cg = lh_config+idx;
diff --git a/src/survive_config.h b/src/survive_config.h
index 2610e2e..b14f928 100644
--- a/src/survive_config.h
+++ b/src/survive_config.h
@@ -39,7 +39,6 @@ extern config_group lh_config[2]; //lighthouse configs
void config_init();
//void config_open(const char* path, const char* mode);
void config_read(const char* path);
-void config_close();
//void config_write_lighthouse(struct BaseStationData* bsd, uint8_t length);
void config_set_lighthouse(struct BaseStationData* bsd, uint8_t idx);