summaryrefslogtreecommitdiff
path: root/src/dxfdim.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-08-19 12:31:23 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-08-19 12:31:23 (GMT)
commit702525f69c0c9b7dbeb9f07efd4d9acaf9ead65d (patch)
tree5f464d1bf7b63c29fc9d9f9c51fa2db1454fedda /src/dxfdim.cc
parentca03eec8404d36e6261f7a10ef93a528c083a09c (diff)
cleanup for pull request
Diffstat (limited to 'src/dxfdim.cc')
-rw-r--r--src/dxfdim.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/dxfdim.cc b/src/dxfdim.cc
index 6f1b0ab..872637b 100644
--- a/src/dxfdim.cc
+++ b/src/dxfdim.cc
@@ -36,11 +36,8 @@
#include <sstream>
#include <boost/filesystem.hpp>
-//boost::unordered_map<std::string,Value> dxf_dim_cache;
-//boost::unordered_map<std::string,Value> dxf_cross_cache;
-#include <map>
-std::map<std::string,Value> dxf_dim_cache;
-std::map<std::string,Value> dxf_cross_cache;
+boost::unordered_map<std::string,Value> dxf_dim_cache;
+boost::unordered_map<std::string,Value> dxf_cross_cache;
namespace fs = boost::filesystem;
Value builtin_dxf_dim(const Context *ctx, const std::vector<std::string> &argnames, const std::vector<Value> &args)
@@ -186,7 +183,6 @@ Value builtin_dxf_cross(const Context *ctx, const std::vector<std::string> &argn
return dxf_cross_cache[key] = Value(ret);
}
}
-
PRINTB("WARNING: Can't find cross in '%s', layer '%s'!", filename % layername);
return Value();
}
contact: Jan Huwald // Impressum