Commit 8ecd9b57 authored by Robert Schilling's avatar Robert Schilling

Remove leftover API helper for removed CI API

parent 93ad8344
......@@ -45,18 +45,4 @@ module ApiHelpers
oauth_access_token: oauth_access_token
)
end
def ci_api(path, user = nil)
"/ci/api/v1/#{path}" +
# Normalize query string
(path.index('?') ? '' : '?') +
# Append private_token if given a User object
if user.respond_to?(:private_token)
"&private_token=#{user.private_token}"
else
''
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment