about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:09:43 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:09:43 +0000
commit917188675aba132371494b45c2ee1a70254cb59a (patch)
treeeee4ddd2b885b9f37c0afbd9e7a3eed2f3384f92 /Completion/Base
parent3a6cc96ce6045ca82af881df34177592c28ead3e (diff)
downloadzsh-917188675aba132371494b45c2ee1a70254cb59a.tar.gz
zsh-917188675aba132371494b45c2ee1a70254cb59a.tar.xz
zsh-917188675aba132371494b45c2ee1a70254cb59a.zip
moved to Completion/Base/Utility/_cache_invalid
Diffstat (limited to 'Completion/Base')
-rw-r--r--Completion/Base/_cache_invalid21
1 files changed, 0 insertions, 21 deletions
diff --git a/Completion/Base/_cache_invalid b/Completion/Base/_cache_invalid
deleted file mode 100644
index e55381439..000000000
--- a/Completion/Base/_cache_invalid
+++ /dev/null
@@ -1,21 +0,0 @@
-#autoload
-#
-# Function to decide whether a completions cache needs rebuilding
-
-local _cache_ident _cache_dir _cache_path _cache_policy
-_cache_ident="$1"
-
-# If the cache is disabled, we never want to rebuild it, so pretend
-# it's valid.
-zstyle -t ":completion:${curcontext}:" use-cache || return 1
-
-zstyle -s ":completion:${curcontext}:" cache-path _cache_dir
-: ${_cache_dir:=${ZDOTDIR:-$HOME}/.zcompcache}
-_cache_path="$_cache_dir/$_cache_ident"
-
-# See whether the caching policy says that the cache needs rebuilding
-# (the policy will return 0 if it does).
-zstyle -s ":completion:${curcontext}:" cache-policy _cache_policy
-[[ -n "$_cache_policy" ]] && "$_cache_policy" "$_cache_path" && return 0
-
-return 1