Skip to content

Vim.BufferManager: Drop deprecated functions #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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