aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2018-05-02 21:36:47 -0700
committermitermayer <mitermayer.reis@gmail.com>2019-08-25 21:11:49 -0700
commite8f720ad215313be0affc919de2773f059953c18 (patch)
tree73e0ad4c8f1ed1e9695929f22fd5e56923993a99
parentdafe05bbed12f0b75ecefa93818c595df1c64dc2 (diff)
downloadvim-prettier-e8f720ad215313be0affc919de2773f059953c18.tar.xz
Cleaning up unecessary function
-rw-r--r--autoload/prettier.vim11
1 files changed, 3 insertions, 8 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index 71f21d6..bd47e60 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -21,7 +21,7 @@ function! prettier#PrettierCliPath() abort
if l:execCmd != -1
echom l:execCmd
else
- call s:Suggest_Install_Prettier()
+ call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR')
endif
endfunction
@@ -32,7 +32,7 @@ function! prettier#PrettierCli(user_input) abort
let l:out = system(l:execCmd. ' ' . a:user_input)
echom l:out
else
- call s:Suggest_Install_Prettier()
+ call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR')
endif
endfunction
@@ -61,7 +61,7 @@ function! prettier#Prettier(...) abort
call s:Prettier_Exec_Sync(l:cmd, l:startSelection, l:endSelection)
endif
else
- call s:Suggest_Install_Prettier()
+ call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR')
endif
endfunction
@@ -458,8 +458,3 @@ function! s:Prettier_Parse_Error(errors) abort
call s:Handle_Parsing_Errors(a:errors)
endif
endfunction
-
-" If we can't find any prettier installing we then suggest where to get it from
-function! s:Suggest_Install_Prettier() abort
- call prettier#logging#error#log('EXECUTABLE_NOT_FOUND_ERROR')
-endfunction