Remove s:GetCompletions function

This commit is contained in:
micbou 2017-01-24 22:45:51 +01:00
parent dc05227b02
commit 5ece7aee9b
No known key found for this signature in database
GPG Key ID: C7E8FD1F3BDA1E05

View File

@ -715,11 +715,6 @@ function! s:InvokeCompletion()
endfunction endfunction
function! s:GetCompletions()
return s:Pyeval( 'ycm_state.GetCompletions()' )
endfunction
" This is our main entry point. This is what vim calls to get completions. " This is our main entry point. This is what vim calls to get completions.
function! youcompleteme#Complete( findstart, base ) function! youcompleteme#Complete( findstart, base )
" After the user types one character after the call to the omnifunc, the " After the user types one character after the call to the omnifunc, the
@ -746,7 +741,7 @@ function! youcompleteme#Complete( findstart, base )
exec s:python_command "ycm_state.CreateCompletionRequest()" exec s:python_command "ycm_state.CreateCompletionRequest()"
return s:Pyeval( 'base.CompletionStartColumn()' ) return s:Pyeval( 'base.CompletionStartColumn()' )
else else
return s:GetCompletions() return s:Pyeval( 'ycm_state.GetCompletions()' )
endif endif
endfunction endfunction
@ -761,7 +756,7 @@ function! youcompleteme#OmniComplete( findstart, base )
\ "force_semantic = True )" \ "force_semantic = True )"
return s:Pyeval( 'base.CompletionStartColumn()' ) return s:Pyeval( 'base.CompletionStartColumn()' )
else else
return s:GetCompletions() return s:Pyeval( 'ycm_state.GetCompletions()' )
endif endif
endfunction endfunction