diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index d811e3c7..f4491fab 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -18,32 +18,24 @@ #pragma once -#include "policy.hpp" -#include "strvec.hpp" +#include "nonstd/optional.hpp" #include #include #include -#include - class PolicyCache { public: - PolicyCache(void); + PolicyCache(); public: + insert void erase(const char *fusepath); void cleanup(const int prob = 1); void clear(void); -public: - int operator()(const Policy::Search &policy, - const Branches &branches, - const char *fusepath, - StrVec *paths); - private: unsigned _max_size; std::unordered_map _cache;