diff --git a/autoload/sy.vim b/autoload/sy.vim index 381cdef..ee7da9a 100644 --- a/autoload/sy.vim +++ b/autoload/sy.vim @@ -3,8 +3,6 @@ scriptencoding utf-8 " Init: values {{{1 -let g:sy_cache = {} - let s:has_doau_modeline = v:version > 703 || v:version == 703 && has('patch442') " Function: #start {{{1 @@ -91,10 +89,6 @@ function! sy#set_signs(sy, vcs, diff, do_register) abort if a:sy.stats == [-1, -1, -1] let a:sy.stats = [0, 0, 0] endif - " let dir = fnamemodify(a:sy.path, ':h') - " if !has_key(g:sy_cache, dir) - " let g:sy_cache[dir] = a:sy.vcs - " endif endif if empty(a:diff) diff --git a/autoload/sy/repo.vim b/autoload/sy/repo.vim index 3f900d4..cfdbd97 100644 --- a/autoload/sy/repo.vim +++ b/autoload/sy/repo.vim @@ -4,17 +4,6 @@ scriptencoding utf-8 " Function: #detect {{{1 function! sy#repo#detect(do_register) abort - " let vcs_list = s:vcs_list - " " Simple cache. If there is a registered VCS-controlled file in this - " " directory already, assume that this file is probably controlled by - " " the same VCS. Thus we shuffle that VCS to the top of our copy of - " " s:vcs_list, so we don't affect the preference order of s:vcs_list. - " if has_key(g:sy_cache, b:sy_info.dir) - " let vcs_list = [g:sy_cache[b:sy_info.dir]] + - " \ filter(copy(s:vcs_list), 'v:val != "'. - " \ g:sy_cache[b:sy_info.dir] .'"') - " endif - for vcs in s:vcs_list let b:sy.detecting += 1 call sy#repo#get_diff_start(vcs, a:do_register)