summaryrefslogtreecommitdiff
path: root/lib/chef/rest.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-10-08 09:30:35 -0700
committerdanielsdeleo <dan@opscode.com>2013-10-08 15:01:48 -0700
commit88439ca8ffbd57e0f7c5133e0846185902014f74 (patch)
tree6a6c0e07f9f895d1684922a9b2e540b96b2ba2c1 /lib/chef/rest.rb
parent75a71fcdb1e03ba405fe0ddf1d9717e4a5c57b03 (diff)
downloadchef-88439ca8ffbd57e0f7c5133e0846185902014f74.tar.gz
remove duplicate method from subclass
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]