From 5ece7aee9b1d50c21841ad0385af723e1ab5ffc8 Mon Sep 17 00:00:00 2001 From: micbou Date: Tue, 24 Jan 2017 22:45:51 +0100 Subject: [PATCH] Remove s:GetCompletions function --- autoload/youcompleteme.vim | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index cbfa0f2542..6fa02ef013 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -715,11 +715,6 @@ function! s:InvokeCompletion() 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. function! youcompleteme#Complete( findstart, base ) " 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()" return s:Pyeval( 'base.CompletionStartColumn()' ) else - return s:GetCompletions() + return s:Pyeval( 'ycm_state.GetCompletions()' ) endif endfunction @@ -761,7 +756,7 @@ function! youcompleteme#OmniComplete( findstart, base ) \ "force_semantic = True )" return s:Pyeval( 'base.CompletionStartColumn()' ) else - return s:GetCompletions() + return s:Pyeval( 'ycm_state.GetCompletions()' ) endif endfunction