Remove unused device stats variables.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:27:05 +0000 (13:27 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:34:19 +0000 (13:34 +0100)
This removes a bunch of variables that are never actually used anywhere.

This fixes the following compiler warning when building for Windows:

mingw/device.c:46:17: error: ‘device_total_in’ defined but not used [-Werror=unused-variable]
 static uint64_t device_total_in = 0;
                  ^

src/device.h
src/mingw/device.c

index ad91a0e667baa9253affb88b739757ba46a53fb6..8046a255bff0ebb9a4bce9638005e119e0eefcd4 100644 (file)
@@ -27,11 +27,6 @@ extern int device_fd;
 extern char *device;
 extern char *iface;
 
-extern uint64_t device_in_packets;
-extern uint64_t device_in_bytes;
-extern uint64_t device_out_packets;
-extern uint64_t device_out_bytes;
-
 typedef struct devops_t {
        bool (*setup)(void);
        void (*close)(void);
index 5e449d50c10d1d4355fd764ed1e9de5e5ca7a192..b6dffbc988bda018e7d9adffc1b0ca96f42d2033 100644 (file)
@@ -43,9 +43,6 @@ char *device = NULL;
 char *iface = NULL;
 static char *device_info = NULL;
 
-static uint64_t device_total_in = 0;
-static uint64_t device_total_out = 0;
-
 extern char *myport;
 
 static void device_issue_read() {
@@ -234,8 +231,6 @@ static bool write_packet(vpn_packet_t *packet) {
                return false;
        }
 
-       device_total_out += packet->len;
-
        return true;
 }