diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-11 07:10:31 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-11 07:10:31 (GMT) |
commit | 18e97e0bd3f6bda4fdcd17de2a85173ba59b6b00 (patch) | |
tree | 327ec7c648e0f01a2673672ebe83c3524c971e19 /src/PolySetEvaluator.h | |
parent | 9afeded46c0e9023002dc04ba6131adcb39762b1 (diff) |
Fixed bug introduced by the new PolySet cache; string filtering done in the wrong place, refactored cache into separate class
Diffstat (limited to 'src/PolySetEvaluator.h')
-rw-r--r-- | src/PolySetEvaluator.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/PolySetEvaluator.h b/src/PolySetEvaluator.h index 6319e55..833b079 100644 --- a/src/PolySetEvaluator.h +++ b/src/PolySetEvaluator.h @@ -1,10 +1,8 @@ #ifndef POLYSETEVALUATOR_H_ #define POLYSETEVALUATOR_H_ -#include "myqhash.h" #include "node.h" #include "Tree.h" -#include <QCache> #include "memory.h" class PolySetEvaluator @@ -23,21 +21,6 @@ public: virtual PolySet *evaluatePolySet(const class CgaladvNode &) { return NULL; } virtual PolySet *evaluatePolySet(const class RenderNode &) { return NULL; } - static void clearCache() { - cache.clear(); - } - void printCache(); -protected: - - struct cache_entry { - shared_ptr<class PolySet> ps; - QString msg; - cache_entry(const shared_ptr<PolySet> &ps); - ~cache_entry() { } - }; - - static QCache<std::string, cache_entry> cache; - private: const Tree &tree; }; |