aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-21 17:29:02 -0400
committerFranklin Wei <git@fwei.tk>2015-05-21 17:29:02 -0400
commitdeb4a3d28260fd9c28c50fcd84c6c4632c92e6f7 (patch)
tree0dcfb9b5d87bbe208d37a1f492b64510446f0558 /src
parentf5808cddfa783b5f270dca922c84e22800f62038 (diff)
downloadmarket-sim-deb4a3d28260fd9c28c50fcd84c6c4632c92e6f7.zip
market-sim-deb4a3d28260fd9c28c50fcd84c6c4632c92e6f7.tar.gz
market-sim-deb4a3d28260fd9c28c50fcd84c6c4632c92e6f7.tar.bz2
market-sim-deb4a3d28260fd9c28c50fcd84c6c4632c92e6f7.tar.xz
remove junk
Diffstat (limited to 'src')
-rw-r--r--src/debug.c11
-rw-r--r--src/globals.h7
-rw-r--r--src/main.c7
3 files changed, 0 insertions, 25 deletions
diff --git a/src/debug.c b/src/debug.c
deleted file mode 100644
index fe0d7cb..0000000
--- a/src/debug.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "globals.h"
-
-void debug_init(void)
-{
-
-}
-
-void debug_handler(struct player_t *player)
-{
- printf("go away\n");
-}
diff --git a/src/globals.h b/src/globals.h
index e01b729..60cd40c 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -113,13 +113,6 @@ void load_handler(struct player_t*);
void quit_handler(struct player_t*);
void print_handler(struct player_t*);
-#ifndef NDEBUG
-
-void debug_handler(struct player_t*);
-void debug_init(void);
-
-#endif
-
void do_menu(struct player_t*, const struct command_t*, uint len, const char *prompt);
#endif
diff --git a/src/main.c b/src/main.c
index 0f6ae16..36734d5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -13,10 +13,6 @@ int main(int argc, char *argv[])
atexit(cleanup);
-#ifndef NDEBUG
- debug_init();
-#endif
-
curl_global_init(CURL_GLOBAL_DEFAULT);
struct player_t *player = malloc(sizeof(struct player_t));
@@ -40,9 +36,6 @@ int main(int argc, char *argv[])
{ "Stock [i]nfo", "info", info_handler },
{ "[W]rite portfolio", "write", save_handler },
{ "[L]oad portfolio", "load", load_handler },
-#ifndef NDEBUG
- { "[D]ebug menu", "debug", debug_handler },
-#endif
{ "[Q]uit", "quit", quit_handler },
};