Skip to content

Commit

Permalink
Remove coverage#ShowDiff
Browse files Browse the repository at this point in the history
It does not appear to be implemented fully.

Fixes google#19.
  • Loading branch information
blueyed committed Jun 21, 2018
1 parent 1bb5a1a commit 77950ad
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions autoload/coverage.vim
Original file line number Diff line number Diff line change
Expand Up @@ -120,24 +120,6 @@ function! s:CoverageShow(...) abort
endif
endfunction

""
" Shows coverage in vimdiff with the version coverage was known for.
function! s:CoverageShowDiff() abort
let l:filename = expand('%:p')
if has_key(s:cache, l:filename)
let l:data = s:cache[l:filename]
if has_key(l:data, 'diff_path')
" Current file has changed, so split into diff mode with the file at the
" point where the coverage is known, and render it there, in the split.
execute 'vertical' 'diffsplit' l:data.diff_path
call s:RenderFromCache(l:filename)
else
call maktaba#error#Warn('There is no diff.')
endif
endif
endfunction


""
" Calculates coverage stats from @dict(s:cache), and returns the stats for the
" requested {filename}. Does not get the coverage stats.
Expand Down Expand Up @@ -271,14 +253,6 @@ function! coverage#Show(...) abort
endtry
endfunction

function! coverage#ShowDiff() abort
try
call s:CoverageShowDiff()
catch /ERROR.*/
call maktaba#error#Shout('Error rendering coverage: %s', v:exception)
endtry
endfunction

function! coverage#Hide() abort
try
if has_key(s:visible, expand('%:p'))
Expand Down

0 comments on commit 77950ad

Please sign in to comment.