From: david Date: Wed, 20 Mar 2002 21:31:53 +0000 (+0000) Subject: Patch from Tony Peden to remove unused variable and eliminate compiler X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b5a0cde6904b17c0418cd949d3b6da908cc3b8b;p=simgear.git Patch from Tony Peden to remove unused variable and eliminate compiler warning. --- diff --git a/simgear/misc/props.cxx b/simgear/misc/props.cxx index 21a2aac4..77daddb2 100644 --- a/simgear/misc/props.cxx +++ b/simgear/misc/props.cxx @@ -8,10 +8,6 @@ #include "props.hxx" -#include -#include -#include - #if PROPS_STANDALONE #include @@ -28,6 +24,9 @@ SG_USING_STD(sort); #endif +#include +#include +#include @@ -223,7 +222,6 @@ copy_string (const char * s) // For some reason, strnlen and // strncpy cause all kinds of crashes. string str = s; - size_t len = strlen(s); char * copy = new char[str.size() + 1]; strcpy(copy, str.c_str()); return copy;