Remove buffer_contents function

This was only used for realtime diffs, which now write to a temporary
file.
This commit is contained in:
Eli Young
2015-03-03 14:18:42 -08:00
committed by Andy Stewart
parent 0cb1e41b23
commit d613f0f3b2

View File

@@ -71,17 +71,6 @@ function! gitgutter#utility#save_last_seen_change()
call setbufvar(s:bufnr, 'gitgutter_last_tick', getbufvar(s:bufnr, 'changedtick')) call setbufvar(s:bufnr, 'gitgutter_last_tick', getbufvar(s:bufnr, 'changedtick'))
endfunction endfunction
function! gitgutter#utility#buffer_contents()
if &fileformat ==# "dos"
let eol = "\r\n"
elseif &fileformat ==# "mac"
let eol = "\r"
else
let eol = "\n"
endif
return join(getbufline(s:bufnr, 1, '$'), eol) . eol
endfunction
function! gitgutter#utility#shell_error() function! gitgutter#utility#shell_error()
return gitgutter#utility#using_xolox_shell() ? s:exit_code : v:shell_error return gitgutter#utility#using_xolox_shell() ? s:exit_code : v:shell_error
endfunction endfunction