diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-02-20 14:03:15 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-02-20 14:03:15 -0700 |
commit | d6be9fc96c31c617060535651427dc22623459cb (patch) | |
tree | 380c37df2edd25b793c2b2484255e8c79dbb582e | |
parent | cb7c1c8994e0990de338ea789332e347ac14d3eb (diff) | |
download | noteless-d6be9fc96c31c617060535651427dc22623459cb.tar.gz noteless-d6be9fc96c31c617060535651427dc22623459cb.tar.xz |
Just c++ cleanup from previous commit
-rw-r--r-- | src/config.c | 27 | ||||
-rw-r--r-- | src/config.h | 2 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/config.c b/src/config.c index 631b580..5e84338 100644 --- a/src/config.c +++ b/src/config.c @@ -230,30 +230,3 @@ char* config_get(config_t* conf, char* key) { // // Success! // return 0; // } - -// bool config::isset( string key ) { -// for( int i = 0; i < values.size(); i+=2 ) { -// if( values[i] == key ) { -// return true; -// } -// } -// return false; -// } - -/** - * Returns the value for the specified key - * - * string key - The key to return the value for - * - * return string The value of the specified key - */ -// string config::get( string key ) { -// // Hop skip and jump -// // Evens are keys, odds are values (even + 1) -// for( int i = 0; i < values.size(); i+=2 ) { -// if( values[i] == key ) { -// return values[i+1]; -// } -// } -// return "Unknown"; -// } diff --git a/src/config.h b/src/config.h index 89d1bdd..07af035 100644 --- a/src/config.h +++ b/src/config.h @@ -45,8 +45,6 @@ char* config_get(config_t*, char*); int config_valid_line_count(char*); -// get(char*, char*); -// int isset(char*); // int parse_line(char*); #endif |