From 7d6b7b772941d0204bc595335ef8bf2c0fcba81b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Dec 2015 13:17:04 +0100 Subject: [PATCH] Some cleanups --- command.c | 12 ------------ movie.c | 1 - 2 files changed, 13 deletions(-) diff --git a/command.c b/command.c index 981f1b5f34..77c9821e9b 100644 --- a/command.c +++ b/command.c @@ -25,19 +25,13 @@ #include #include #include -#include #include #include "msg_hash.h" -#if defined(HAVE_NETWORK_CMD) && defined(HAVE_NETPLAY) -#include "netplay.h" -#endif - #include "command.h" #include "general.h" -#include "runloop.h" #include "verbosity.h" #define DEFAULT_NETWORK_CMD_PORT 55355 @@ -625,9 +619,6 @@ bool network_cmd_send(const char *cmd_) const char *cmd = NULL; const char *host = NULL; const char *port_ = NULL; - global_t *global = global_get_ptr(); - bool *verbose = retro_main_verbosity(); - bool old_verbose = global ? *verbose : false; uint16_t port = DEFAULT_NETWORK_CMD_PORT; if (!network_init()) @@ -636,8 +627,6 @@ bool network_cmd_send(const char *cmd_) if (!(command = strdup(cmd_))) return false; - *verbose = true; - cmd = strtok_r(command, ";", &save); if (cmd) host = strtok_r(NULL, ";", &save); @@ -663,7 +652,6 @@ bool network_cmd_send(const char *cmd_) ret = verify_command(cmd) && send_udp_packet(host, port, cmd); free(command); - *verbose = old_verbose; return ret; } #endif diff --git a/movie.c b/movie.c index a72788fc70..2fcecfcb9a 100644 --- a/movie.c +++ b/movie.c @@ -24,7 +24,6 @@ #include "movie.h" #include "general.h" #include "msg_hash.h" -#include "runloop.h" #include "verbosity.h" struct bsv_movie