Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/puppet/generate/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def format=(format)
# @return [Boolean] Returns true if the output is up-to-date or false if not.
def up_to_date?(outputdir)
f = effective_output_path(outputdir)
Puppet::FileSystem.exist?(f) && (Puppet::FileSystem.stat(@path) <=> Puppet::FileSystem.stat(f)) <= 0
Puppet::FileSystem.exist?(f) &&
Puppet::FileSystem.stat(@path).mtime <= Puppet::FileSystem.stat(f).mtime
end

# Gets the filename of the output file.
Expand Down
7 changes: 0 additions & 7 deletions lib/puppet/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,4 @@ module HTTP
require_relative 'http/retry_after_handler'
require_relative 'http/external_client'
end

# Legacy HTTP API
module Network
module HTTP
require_relative '../puppet/network/http_pool'
end
end
end
288 changes: 0 additions & 288 deletions lib/puppet/network/http/connection.rb

This file was deleted.

8 changes: 0 additions & 8 deletions lib/puppet/network/http/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ def headers(request)
raise NotImplementedError
end

# The mime type is always passed to the `set_content_type` method, so
# it is no longer necessary to retrieve the Format's mime type.
#
# @deprecated
def format_to_mime(format)
format.is_a?(Puppet::Network::Format) ? format.mime : format
end

# Create a generic puppet request from the implementation-specific request
# created by the web server
def make_generic_request(request)
Expand Down
Loading