Skip to content

Commit ee9c415

Browse files
committed
Remove remaining deprecated commands
1 parent 5618d95 commit ee9c415

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

autoload/rails.vim

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,6 @@ function! s:warn(str) abort
519519
return ''
520520
endfunction
521521

522-
function! s:deprecate(old, new, ...) abort
523-
return 'echoerr ' . string(a:old . ' is obsolete. Use ' . a:new . ' instead.')
524-
endfunction
525-
526522
function! s:error(str) abort
527523
echohl ErrorMsg
528524
echomsg a:str
@@ -970,10 +966,8 @@ function! s:BufCommands()
970966
call s:BufScriptWrappers()
971967
command! -buffer -bar -nargs=* -bang Rabbrev :call s:Abbrev(<bang>0,<f-args>)
972968
command! -buffer -bar -nargs=? -bang -count -complete=customlist,rails#complete_rake Rake :call s:Rake(<bang>0,!<count> && <line1> ? -1 : <count>,<q-args>)
973-
command! -buffer -bar -nargs=? -bang -range -complete=customlist,s:Complete_preview Rpreview :exe s:deprecate(':Rpreview', ':Preview', ':Preview<bang> '.<q-args>))
974969
command! -buffer -bar -nargs=? -bang -range -complete=customlist,s:Complete_preview Rbrowse :call s:Preview(<bang>0,<line1>,<q-args>)
975970
command! -buffer -bar -nargs=? -bang -range -complete=customlist,s:Complete_preview Preview :call s:Preview(<bang>0,<line1>,<q-args>)
976-
command! -buffer -bar -nargs=? -bang -complete=customlist,s:Complete_log Rlog exe s:deprecate(':Rlog', ':Clog', <bang>0 ? 'Clog<bang> '.<q-args> : s:Plog(0, <q-args>))
977971
command! -buffer -bar -nargs=? -bang -complete=customlist,s:Complete_log Clog exe s:Clog(1<bang>, '<mods>', <q-args>)
978972
command! -buffer -bar -nargs=0 Rtags :execute rails#app().tags_command()
979973
command! -buffer -bar -nargs=0 Ctags :execute rails#app().tags_command()
@@ -990,9 +984,6 @@ function! s:BufCommands()
990984
elseif rails#buffer().name() =~# '^app/\w\+/.*\.rb$'
991985
command! -buffer -bar -bang -nargs=1 -range Extract :<line1>,<line2>call s:RubyExtract(<bang>0, '<mods>', matchstr(rails#buffer().name(), '^app/\w\+/').'concerns', [' extend ActiveSupport::Concern', ''], <f-args>)
992986
endif
993-
if exists(':Extract') == 2
994-
command! -buffer -bar -bang -nargs=? -range -complete=customlist,s:controllerList Rextract :exe s:deprecate(':Rextract', ':Extract', '<line1>,<line2>Extract<bang> '.<q-args>)
995-
endif
996987
if rails#buffer().name() =~# '^db/migrate/.*\.rb$'
997988
command! -buffer -bar Rinvert :call s:Invert(<bang>0)
998989
endif
@@ -1663,15 +1654,10 @@ endfunction
16631654
" Script Wrappers {{{1
16641655

16651656
function! s:BufScriptWrappers()
1666-
command! -buffer -bang -bar -nargs=? -complete=customlist,s:Complete_script Rscript :execute s:deprecate(':Rscript', ':Rails', 'Rails<bang>' . empty(<q-args>) ? 'console' : <q-args>)
16671657
command! -buffer -bang -bar -nargs=* -complete=customlist,s:Complete_environments Console :Rails<bang> console <args>
1668-
command! -buffer -bang -bar -nargs=* -complete=customlist,s:Complete_generate Rgenerate :execute s:deprecate(':Rgenerate', ':Generate', ':Generate<bang> '.<q-args>)
16691658
command! -buffer -bang -bar -nargs=* -complete=customlist,s:Complete_generate Generate :execute rails#app().generator_command(<bang>0,'<mods>','generate',<f-args>)
1670-
command! -buffer -bar -nargs=* -complete=customlist,s:Complete_destroy Rdestroy :execute s:deprecate(':Rdestroy', ':Destroy', ':Destroy<bang> '.<q-args>)
16711659
command! -buffer -bar -nargs=* -complete=customlist,s:Complete_destroy Destroy :execute rails#app().generator_command(1,'<mods>','destroy',<f-args>)
1672-
command! -buffer -bar -nargs=? -bang -complete=customlist,s:Complete_server Rserver :execute s:deprecate(':Rserver', ':Server', ':Server<bang> '.<q-args>)
16731660
command! -buffer -bar -nargs=? -bang -complete=customlist,s:Complete_server Server :execute rails#app().server_command(0, <bang>0, <q-args>)
1674-
command! -buffer -bang -nargs=? -range=0 -complete=customlist,s:Complete_edit Rrunner :execute s:deprecate(':Rrunner', ':Runner', ':Runner<bang> '.<q-args>)
16751661
command! -buffer -bang -nargs=? -range=0 -complete=customlist,s:Complete_edit Runner :execute rails#buffer().runner_command(<bang>0, <count>?<line1>:0, <q-args>)
16761662
command! -buffer -nargs=1 -range=0 -complete=customlist,s:Complete_ruby Rp :execute rails#app().output_command(<count>==<line2>?<count>:-1, 'p begin '.<q-args>.' end')
16771663
command! -buffer -nargs=1 -range=0 -complete=customlist,s:Complete_ruby Rpp :execute rails#app().output_command(<count>==<line2>?<count>:-1, 'require %{pp}; pp begin '.<q-args>.' end')

0 commit comments

Comments
 (0)