Skip to content

Commit

Permalink
Merge pull request #446 from vim-jp/Vim.BufferManager-drop-deprecated…
Browse files Browse the repository at this point in the history
…-functions

Vim.BufferManager: Drop deprecated functions
  • Loading branch information
thinca authored Aug 7, 2016
2 parents 4ff8d9e + 09abbf1 commit c6287a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
71aba2ebe0ad1cbfb888d8349ec95e7b79b1e88c
Modules: Vim.BufferManager
The following deprecated functions were removed.
- open()
- is_cmdwin()
Use Vim.Buffer's one instead.
982d3cb87ef788f4607fc61f1fd20ec2e3975479
Modules: Vim.Guard
Guard.store() API has changed to take a single List instance instead of arguments, due to the
Expand Down
15 changes: 0 additions & 15 deletions autoload/vital/__vital__/Vim/BufferManager.vim
Original file line number Diff line number Diff line change
Expand Up @@ -159,21 +159,6 @@ function! s:new(...) abort
\.user_config(2 <= a:0 ? a:2 : {})
endfunction

function! s:open(buffer, opener) abort
call s:_deprecated('open')
return s:B.open(a:buffer, a:opener)
endfunction

function! s:_deprecated(fname) abort
echomsg printf('Vital.Vim.BufferManager.%s is deprecated! Please use Vital.Vim.Buffer.%s instead.',
\ a:fname, a:fname)
endfunction

function! s:is_cmdwin() abort
call s:_deprecated('is_cmdwin')
return s:B.is_cmdwin()
endfunction

function! s:_make_config(manager, configs) abort
let configs = [a:manager._config]
let user = a:manager._user_config
Expand Down

0 comments on commit c6287a5

Please sign in to comment.