From 890f414cb9d4ffcee57575ea577f86c8dde93b03 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 27 Sep 2019 07:02:04 +0200 Subject: [PATCH] Small clean up of unused code --- Source/init.cpp | 3 --- SourceX/storm/storm_net.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/Source/init.cpp b/Source/init.cpp index b759cbce3..7cc7be979 100644 --- a/Source/init.cpp +++ b/Source/init.cpp @@ -78,9 +78,6 @@ void init_create_window(int nCmdShow) void init_archives() { HANDLE fh; -#ifdef COPYPROT - int result; -#endif memset(&fileinfo, 0, sizeof(fileinfo)); fileinfo.size = sizeof(fileinfo); fileinfo.versionstring = gszVersionNumber; diff --git a/SourceX/storm/storm_net.cpp b/SourceX/storm/storm_net.cpp index b20fb16ef..d6f2f6ac1 100644 --- a/SourceX/storm/storm_net.cpp +++ b/SourceX/storm/storm_net.cpp @@ -80,11 +80,8 @@ BOOL SNetGetGameInfo(int type, void *dst, unsigned int length, unsigned int *byt strncpy((char *)dst, gpszGamePassword, length); *byteswritten = strlen(gpszGamePassword) + 1; break; - default: - break; } - DUMMY(); return true; }