]> git.mxchange.org Git - simgear.git/commitdiff
Patch from Tony Peden to remove unused variable and eliminate compiler
authordavid <david>
Wed, 20 Mar 2002 21:31:53 +0000 (21:31 +0000)
committerdavid <david>
Wed, 20 Mar 2002 21:31:53 +0000 (21:31 +0000)
warning.

simgear/misc/props.cxx

index 21a2aac47294f45350c9394ed2c54d1a73b0beef..77daddb242a8959e7d5d50a5a3f650dbac871dcc 100644 (file)
@@ -8,10 +8,6 @@
 
 #include "props.hxx"
 
-#include <algorithm>
-#include <stdio.h>
-#include <string.h>
-
 #if PROPS_STANDALONE
 
 #include <iostream>
@@ -28,6 +24,9 @@ SG_USING_STD(sort);
 
 #endif
 
+#include <algorithm>
+#include <stdio.h>
+#include <string.h>
 
 
 \f
@@ -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;