mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 20:24:29 +08:00
Remove old lowercase API
I don't think this was ever official, so no need to have a formal deprecation cycle.
This commit is contained in:
@@ -69,10 +69,6 @@ function! rhubarb#HomepageForUrl(url) abort
|
||||
return substitute(root, '/$', '', '') . '/' . match[4]
|
||||
endfunction
|
||||
|
||||
function! rhubarb#homepage_for_url(url) abort
|
||||
return rhubarb#HomepageForUrl(a:url)
|
||||
endfunction
|
||||
|
||||
function! s:repo_homepage() abort
|
||||
if exists('b:rhubarb_homepage')
|
||||
return b:rhubarb_homepage
|
||||
@@ -223,18 +219,10 @@ function! rhubarb#Request(path, ...) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! rhubarb#request(...) abort
|
||||
return call('rhubarb#Request', a:000)
|
||||
endfunction
|
||||
|
||||
function! rhubarb#RepoRequest(...) abort
|
||||
return rhubarb#Request('repos/%s' . (a:0 && a:1 !=# '' ? '/' . a:1 : ''), a:0 > 1 ? a:2 : {})
|
||||
endfunction
|
||||
|
||||
function! rhubarb#repo_request(...) abort
|
||||
return call('rhubarb#RepoRequest', a:000)
|
||||
endfunction
|
||||
|
||||
function! s:url_encode(str) abort
|
||||
return substitute(a:str, '[?@=&<>%#/:+[:space:]]', '\=submatch(0)==" "?"+":printf("%%%02X", char2nr(submatch(0)))', 'g')
|
||||
endfunction
|
||||
@@ -243,10 +231,6 @@ function! rhubarb#RepoSearch(type, q, ...) abort
|
||||
return call('rhubarb#Request', ['search/'.a:type.'?per_page=100&q=repo:%s'.s:url_encode(' '.a:q)] + a:000)
|
||||
endfunction
|
||||
|
||||
function! rhubarb#repo_search(...) abort
|
||||
return call('rhubarb#RepoSearch', a:000)
|
||||
endfunction
|
||||
|
||||
" Section: Issues
|
||||
|
||||
function! s:CompleteAddIssues(response, prefix) abort
|
||||
@@ -290,10 +274,6 @@ function! rhubarb#Complete(findstart, base) abort
|
||||
endtry
|
||||
endfunction
|
||||
|
||||
function! rhubarb#omnifunc(findstart, base) abort
|
||||
return rhubarb#Complete(a:findstart, a:base)
|
||||
endfunction
|
||||
|
||||
" Section: Fugitive :GBrowse support
|
||||
|
||||
" https://github.com/github/markup
|
||||
@@ -339,8 +319,4 @@ function! rhubarb#FugitiveUrl(...) abort
|
||||
return url
|
||||
endfunction
|
||||
|
||||
function! rhubarb#fugitive_url(...) abort
|
||||
return call('rhubarb#FugitiveUrl', a:000)
|
||||
endfunction
|
||||
|
||||
" Section: End
|
||||
|
||||
Reference in New Issue
Block a user