cleanup s:python_complete()

This commit is contained in:
Prabir Shrestha
2018-05-26 12:43:30 -07:00
parent 72811f7d68
commit 79b060e2e9
-9
View File
@@ -384,7 +384,6 @@ function! s:python_refresh_completions(ctx) abort
let l:names = keys(s:matches)
if empty(l:names)
call s:python_complete(a:ctx, a:ctx['col'], [])
return
endif
@@ -444,14 +443,6 @@ function! s:filter_completion_items(prefix, matches) abort
return l:tmpmatches
endfunction
function! s:python_complete(ctx, startcol, matches) abort
if empty(a:matches)
" no need to fire complete message
return
endif
call s:core_complete(a:ctx, a:startcol, a:matches, s:matches)
endfunction
function! s:python_cm_event(name, event, ctx) abort
try
call s:sources[a:name].on_event(s:sources[a:name], a:ctx, a:event)