From 77950ada2a2663047df38fa4923aacdce46b5dbb Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 21 Jun 2018 23:51:37 +0200 Subject: [PATCH] Remove coverage#ShowDiff It does not appear to be implemented fully. Fixes https://github.com/google/vim-coverage/issues/19. --- autoload/coverage.vim | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/autoload/coverage.vim b/autoload/coverage.vim index df08311..9d44bc6 100644 --- a/autoload/coverage.vim +++ b/autoload/coverage.vim @@ -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. @@ -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'))