diff --git a/autoload/go/oracle.vim b/autoload/go/oracle.vim index 8ef0b7c711..2eb0882b50 100644 --- a/autoload/go/oracle.vim +++ b/autoload/go/oracle.vim @@ -162,12 +162,6 @@ function! go#oracle#Callers(selected) call s:qflistSecond(out) endfunction -" Show the callgraph of the current program. -function! go#oracle#Callgraph(selected) - let out = s:RunOracle('callgraph', a:selected) - call s:qflistSecond(out) -endfunction - " Show path from callgraph root to selected function function! go#oracle#Callstack(selected) let out = s:RunOracle('callstack', a:selected) @@ -189,27 +183,6 @@ endfunction " Show all refs to entity denoted by selected identifier function! go#oracle#Referrers(selected) let out = s:RunOracle('referrers', a:selected) - - " append line contents from Go source file for some messages: - " '...: referenced here' - " '...: reference to NAME' - let lines = split(out, "\n") - let extlines = [] - for line in lines - if line =~# '\v: referenced here$|: reference to [^ :]*$' - let parts = split(line, ':') - " Note: we count -3 from end, to support additional comma in - " Windows-style C:\... paths - let filename = join(parts[0:-3], ':') - let linenum = parts[-2] - let extline = line . ': ' . readfile(filename, '', linenum)[linenum-1] - call add(extlines, extline) - else - call add(extlines, line) - endif - endfor - let out = join(extlines, "\n") - call s:qflistSecond(out) endfunction diff --git a/doc/vim-go.txt b/doc/vim-go.txt index d0ae10f817..9e29095dfa 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -315,18 +315,11 @@ COMMANDS *go-commands* identifier), etc. Almost any piece of syntax may be described, and the oracle will try to print all the useful information it can. - *:GoCallgraph* -:GoCallgraph - - Shows the 'callgraph' for the entire program. For more info about the - indentation checkout the Oracle User Manual: - golang.org/s/oracle-user-manual - *:GoCallstack* :GoCallstack Shows 'callstack' relation for the selected function. An arbitrary path - from the root of the callgrap to the selected function is showed in a + from the root of the callgraph to the selected function is showed in a quickfix list. This may be useful to understand how the function is reached in a given program. @@ -492,10 +485,6 @@ Show possible callers of selected function Describe selected syntax: definition, methods, etc - *(go-callgraph)* - -Show the callgraph of the current program. - *(go-callstack)* Show path from callgraph root to selected function diff --git a/ftplugin/go/commands.vim b/ftplugin/go/commands.vim index e1a6f9979f..038db86156 100644 --- a/ftplugin/go/commands.vim +++ b/ftplugin/go/commands.vim @@ -22,7 +22,6 @@ nnoremap (go-implements) :call go#oracle#Implements(-1) nnoremap (go-callees) :call go#oracle#Callees(-1) nnoremap (go-callers) :call go#oracle#Callers(-1) nnoremap (go-describe) :call go#oracle#Describe(-1) -nnoremap (go-callgraph) :call go#oracle#Callgraph(-1) nnoremap (go-callstack) :call go#oracle#Callstack(-1) nnoremap (go-freevars) :call go#oracle#Freevars(-1) nnoremap (go-channelpeers) :call go#oracle#ChannelPeers(-1) @@ -50,7 +49,6 @@ command! -range=% GoImplements call go#oracle#Implements() command! -range=% GoCallees call go#oracle#Callees() command! -range=% GoDescribe call go#oracle#Describe() command! -range=% GoCallers call go#oracle#Callers() -command! -range=% GoCallgraph call go#oracle#Callgraph() command! -range=% GoCallstack call go#oracle#Callstack() command! -range=% GoFreevars call go#oracle#Freevars() command! -range=% GoChannelPeers call go#oracle#ChannelPeers()