diff --git a/taichi/util/offline_cache.cpp b/taichi/util/offline_cache.cpp index 29b881b770164..def60a9ad1905 100644 --- a/taichi/util/offline_cache.cpp +++ b/taichi/util/offline_cache.cpp @@ -32,14 +32,6 @@ std::string get_cache_path_by_arch(const std::string &base_path, Arch arch) { return taichi::join_path(base_path, subdir); } -bool enabled_wip_offline_cache(bool enable_hint) { - // CompileConfig::offline_cache is a global option to enable offline cache on - // all backends To disable WIP offline cache by default & enable when - // developing/testing: - const char *enable_env = std::getenv("TI_WIP_OFFLINE_CACHE"); - return enable_hint && enable_env && std::strncmp("1", enable_env, 1) == 0; -} - std::string mangle_name(const std::string &primal_name, const std::string &key) { // Result: {primal_name}{key: char[65]}_{(checksum(primal_name)) ^ diff --git a/taichi/util/offline_cache.h b/taichi/util/offline_cache.h index a96e153ee437e..7576a46c1ae55 100644 --- a/taichi/util/offline_cache.h +++ b/taichi/util/offline_cache.h @@ -291,7 +291,6 @@ class CacheCleaner { void disable_offline_cache_if_needed(CompileConfig *config); std::string get_cache_path_by_arch(const std::string &base_path, Arch arch); -bool enabled_wip_offline_cache(bool enable_hint); std::string mangle_name(const std::string &primal_name, const std::string &key); bool try_demangle_name(const std::string &mangled_name, std::string &primal_name,