aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/utils.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-04-20 10:48:32 +0200
committerMarkus Reiter2017-04-21 01:28:21 +0200
commit1cd125e7e76fa4cc0edf5eb2428d705567cdfef7 (patch)
tree88cafd92d493415eeb2dc90b1ceb7f8cf6f37c87 /Library/Homebrew/cask/lib/hbc/utils.rb
parent2be7999878702554f1e1b5f4118978e670e6156c (diff)
downloadbrew-1cd125e7e76fa4cc0edf5eb2428d705567cdfef7.tar.bz2
Refactor cask metadata directory methods.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/utils.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/utils.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb
index ecb565e8e..2a5acbc88 100644
--- a/Library/Homebrew/cask/lib/hbc/utils.rb
+++ b/Library/Homebrew/cask/lib/hbc/utils.rb
@@ -115,16 +115,5 @@ module Hbc
opoo(poo.join(" ") + "\n" + error_message_with_suggestions)
end
-
- def self.nowstamp_metadata_path(container_path)
- @timenow ||= Time.now.gmtime
- return unless container_path.respond_to?(:join)
-
- precision = 3
- timestamp = @timenow.strftime("%Y%m%d%H%M%S")
- fraction = format("%.#{precision}f", @timenow.to_f - @timenow.to_i)[1..-1]
- timestamp.concat(fraction)
- container_path.join(timestamp)
- end
end
end