Skip to content

Commit 731a0e1

Browse files
committed
go/generate: remove unused cache
1 parent ae0b115 commit 731a0e1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

go/generate.vim

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,13 @@ function! s:ast() abort
2828
let vimfile = 'autoload/vimlparser.vim'
2929
let astfile = 'go/vimlparser.ast.vim'
3030

31-
let cache = {}
32-
if filereadable(astfile)
33-
" sandbox return js_decode(readfile(astfile)[0])
34-
let cache = js_decode(readfile(astfile)[0])
35-
" return deepcopy(cache)
36-
" XXX: cache doesn't work.... why...
37-
endif
38-
3931
let lines = readfile(vimfile)
4032
unlet lines[0:index(lines, 'let s:FALSE = 0')]
4133
unlet lines[index(lines, 'let s:RegexpParser = {}'):-2]
4234
let r = s:StringReader.new(lines)
4335
let p = s:VimLParser.new()
4436
let ast = p.parse(r)
45-
echom '(ast == cache) == ' . (ast == cache)
4637
return ast
47-
" return cache
4838
endfunction
4939

5040
function! s:numtoname(num)

0 commit comments

Comments
 (0)