Skip to content

Commit

Permalink
Remove old lowercase API
Browse files Browse the repository at this point in the history
I don't think this was ever official, so no need to have a formal
deprecation cycle.
  • Loading branch information
tpope committed Mar 29, 2023
1 parent ee69335 commit b3bf811
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions autoload/rhubarb.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit b3bf811

Please sign in to comment.