From 5c095858010870f90591b74a3dc61f8d76288bd7 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 15 Feb 2024 19:50:54 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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;