]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/props.cxx
Patch from Tony Peden to remove unused variable and eliminate compiler
[simgear.git] / 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;