Skip to content

Commit bb2edf9

Browse files
committed
Remove all deprecated features
- FernFocus - helper methods without sync/async namespace - fri module in file scheme
1 parent 35b68b7 commit bb2edf9

File tree

5 files changed

+0
-74
lines changed

5 files changed

+0
-74
lines changed

autoload/fern/helper.vim

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ function! fern#helper#new(...) abort
1111
\}, s:helper)
1212
let helper.sync = fern#helper#sync#new(helper)
1313
let helper.async = fern#helper#async#new(helper)
14-
" Add deprecated methods
15-
for name in keys(helper.sync)
16-
if name[:0] ==# '_'
17-
continue
18-
endif
19-
let helper[name] = funcref('s:sync_method', [name])
20-
endfor
21-
for name in keys(helper.async)
22-
if name[:0] ==# '_'
23-
continue
24-
endif
25-
let helper[name] = funcref('s:async_method', [name])
26-
endfor
2714
return helper
2815
endfunction
2916

@@ -36,19 +23,3 @@ let s:helper = {
3623
\ 'STATUS_COLLAPSED': g:fern#STATUS_COLLAPSED,
3724
\ 'STATUS_EXPANDED': g:fern#STATUS_EXPANDED,
3825
\}
39-
40-
function! s:sync_method(name, ...) abort dict
41-
call fern#util#deprecated(
42-
\ printf('helper.%s()', a:name),
43-
\ printf('helper.sync.%s()', a:name),
44-
\)
45-
return call(self.sync[a:name], a:000, self.sync)
46-
endfunction
47-
48-
function! s:async_method(name, ...) abort dict
49-
call fern#util#deprecated(
50-
\ printf('helper.%s()', a:name),
51-
\ printf('helper.async.%s()', a:name),
52-
\)
53-
return call(self.async[a:name], a:000, self.async)
54-
endfunction

autoload/fern/internal/command/focus.vim

Lines changed: 0 additions & 15 deletions
This file was deleted.

autoload/fern/internal/mapping.vim

Lines changed: 0 additions & 6 deletions
This file was deleted.

autoload/fern/scheme/file/fri.vim

Lines changed: 0 additions & 19 deletions
This file was deleted.

plugin/fern.vim

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ command! -bar -nargs=*
99
\ Fern
1010
\ call fern#internal#command#fern#command(<q-mods>, [<f-args>])
1111

12-
command! -bar -nargs=*
13-
\ -complete=customlist,fern#internal#command#focus#complete
14-
\ FernFocus
15-
\ call fern#internal#command#focus#command(<q-mods>, [<f-args>])
16-
1712
command! -bar -nargs=*
1813
\ -complete=customlist,fern#internal#command#do#complete
1914
\ FernDo

0 commit comments

Comments
 (0)