Skip to content

Commit

Permalink
Auto merge of #2513 - micbou:get-completions, r=vheon
Browse files Browse the repository at this point in the history
[READY] Remove s:GetCompletions function

Small refactoring.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2513)
<!-- Reviewable:end -->
  • Loading branch information
homu committed Jan 26, 2017
2 parents 60f3db1 + 5ece7ae commit 26bbbb2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions autoload/youcompleteme.vim
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 26bbbb2

Please sign in to comment.