summaryrefslogtreecommitdiff
path: root/lib/chef/rest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/rest.rb')
-rw-r--r--lib/chef/rest.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb
index c589373837..f5a270248b 100644
--- a/lib/chef/rest.rb
+++ b/lib/chef/rest.rb
@@ -117,14 +117,6 @@ class Chef
streaming_request(create_url(path), headers) {|tmp_file| yield tmp_file }
end
- def create_url(path)
- if path =~ /^(http|https):\/\//
- URI.parse(path)
- else
- URI.parse("#{@url}/#{path}")
- end
- end
-
# Chef::REST doesn't define middleware in the normal way for backcompat reasons, so it's hardcoded here.
def middlewares
[@chef_json_inflater, @cookie_manager, @decompressor, @authenticator]