Skip to content

Commit

Permalink
Drop DartAnalyzer and Dart2JS command stubs (#133)
Browse files Browse the repository at this point in the history
The implementations of these commands were dropped 2 years ago and we
left in stubs to avoid confusion for users still trying trying to use
them. We have not had complains and it's unlikely these stubs are
invoked anymore.
  • Loading branch information
natebosch committed Jan 25, 2022
1 parent cfa925c commit 42e6f57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions autoload/dart.vim
Expand Up @@ -86,18 +86,6 @@ function! s:FindDartFmt() abort
return []
endfunction

function! dart#analyzer(q_args) abort
call s:error('DartAnalyzer support has been removed. '.
\'If this broke your workflow please comment on '.
\'https://github.com/dart-lang/dart-vim-plugin/issues/89')
endfunction

function! dart#tojs(q_args) abort
call s:error('Dart2JS support has been removed. '.
\'If this broke your workflow please comment on '.
\'https://github.com/dart-lang/dart-vim-plugin/issues/89')
endfunction

" Finds the path to `uri`.
"
" If the file is a package: uri, looks for a .packages file to resolve the path.
Expand Down
2 changes: 0 additions & 2 deletions plugin/dart.vim
Expand Up @@ -19,8 +19,6 @@ augroup dart-vim-plugin
autocmd BufWritePre *.dart call s:FormatOnSave()
autocmd FileType dart command! -buffer -nargs=? DartFmt call dart#fmt(<f-args>)
autocmd FileType dart command! -buffer DartToggleFormatOnSave call dart#ToggleFormatOnSave()
autocmd FileType dart command! -buffer -nargs=? Dart2Js call dart#tojs(<q-args>)
autocmd FileType dart command! -buffer -nargs=? DartAnalyzer call dart#analyzer(<q-args>)
autocmd Filetype dart call dart#setModifiable()
augroup END

Expand Down

0 comments on commit 42e6f57

Please sign in to comment.