Skip to content

Commit

Permalink
Remove buffer_contents function
Browse files Browse the repository at this point in the history
This was only used for realtime diffs, which now write to a temporary
file.
  • Loading branch information
elyscape authored and airblade committed Mar 4, 2015
1 parent 0cb1e41 commit d613f0f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions autoload/gitgutter/utility.vim
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,6 @@ function! gitgutter#utility#save_last_seen_change()
call setbufvar(s:bufnr, 'gitgutter_last_tick', getbufvar(s:bufnr, 'changedtick'))
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()
return gitgutter#utility#using_xolox_shell() ? s:exit_code : v:shell_error
endfunction
Expand Down

0 comments on commit d613f0f

Please sign in to comment.