Remove dependency on the cache

This commit is contained in:
José Otávio Rizzatti
2014-05-06 14:42:46 -04:00
parent e9b26cf5aa
commit 3ebbcb2d02
2 changed files with 1 additions and 23 deletions

View File

@@ -38,8 +38,6 @@ function! s:check_for_dash()
endfunction
"}}}
let s:cache = dash#cache#class.new()
let s:aliases = dash#defaults#module.aliases
let s:groups = dash#defaults#module.groups
@@ -67,7 +65,7 @@ endfunction
"}}}
function! dash#complete(arglead, cmdline, cursorpos) "{{{
return filter(copy(s:cache.keywords()), 'match(v:val, a:arglead) == 0')
return []
endfunction
"}}}

View File

@@ -1,20 +0,0 @@
" Description: Search Dash.app from Vim
" Author: José Otávio Rizzatti <zehrizzatti@gmail.com>
" License: MIT
let s:class = funcoo#object#class.extend()
let s:proto = {}
function! s:proto.constructor() dict abort "{{{
let self._keywords = []
endfunction
"}}}
function! s:proto.keywords() dict abort "{{{
return self._keywords
endfunction
"}}}
call s:class.include(s:proto)
let dash#cache#class = s:class