From 8b5a0cde6904b17c0418cd949d3b6da908cc3b8b Mon Sep 17 00:00:00 2001 From: david Date: Wed, 20 Mar 2002 21:31:53 +0000 Subject: [PATCH] Patch from Tony Peden to remove unused variable and eliminate compiler warning. --- simgear/misc/props.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; -- 2.39.5