summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:11:28 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:11:28 +0000
commit7df6561d5036e3a9ca139f45f7b6aeb23f826780 (patch)
tree8a57ca730e6e97972c944101f4ba4786083a0167
parent63a8ab3ca82856bb22e97808ed34fa555fb8e1de (diff)
downloadzsh-7df6561d5036e3a9ca139f45f7b6aeb23f826780.tar.gz
zsh-7df6561d5036e3a9ca139f45f7b6aeb23f826780.tar.xz
zsh-7df6561d5036e3a9ca139f45f7b6aeb23f826780.zip
moved to Completion/Base/Utility/_store_cache
-rw-r--r--Completion/Base/_store_cache36
1 files changed, 0 insertions, 36 deletions
diff --git a/Completion/Base/_store_cache b/Completion/Base/_store_cache
deleted file mode 100644
index 2fe7dfcb6..000000000
--- a/Completion/Base/_store_cache
+++ /dev/null
@@ -1,36 +0,0 @@
-#autoload
-#
-# Storage component of completions caching layer
-
-local _cache_ident
-_cache_ident="$1"
-
-if zstyle -t ":completion:${curcontext}:" use-cache; then
-  # Decide which directory to cache to, and ensure it exists
-  zstyle -s ":completion:${curcontext}:" cache-path _cache_dir
-  : ${_cache_dir:=${ZDOTDIR:-$HOME}/.zcompcache}
-  if [[ ! -d "$_cache_dir" ]]; then
-    if [[ -e "$_cache_dir" ]]; then
-      _message "cache-dir style points to a non-directory\!"
-    else
-      mkdir -p "$_cache_dir"
-      if [[ ! -d "$_cache_dir" ]]; then
-        _message "Couldn't create cache-dir $_cache_dir"
-        return 1
-      fi
-    fi
-  fi
-
-  shift
-  for var; do
-    case ${(Pt)var} in
-    (*readonly*) ;;
-    (*(association|array)*) print -r "$var=( ${(kv@Pqq)^^var} )";;
-    (*)                     print -r "$var=${(Pqq)^^var}";;
-    esac
-  done >! "$_cache_dir/$_cache_ident"
-else
-  return 1
-fi
-
-return 0