From 3bf7e5bce572e22734a727f27c952df2116933bb Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 9 Feb 2019 02:19:01 +0100 Subject: [PATCH] Remove `Cask::Config#write`. --- Library/Homebrew/cask/config.rb | 4 ---- Library/Homebrew/cask/installer.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Library/Homebrew/cask/config.rb b/Library/Homebrew/cask/config.rb index eba5ecfe0b..404370e689 100644 --- a/Library/Homebrew/cask/config.rb +++ b/Library/Homebrew/cask/config.rb @@ -104,9 +104,5 @@ module Cask explicit: explicit, }.to_json(*args) end - - def write(path) - path.atomic_write(to_json) - end end end diff --git a/Library/Homebrew/cask/installer.rb b/Library/Homebrew/cask/installer.rb index 78c7aa3f4a..88b8e83193 100644 --- a/Library/Homebrew/cask/installer.rb +++ b/Library/Homebrew/cask/installer.rb @@ -391,7 +391,7 @@ module Cask end def save_config_file - @cask.config.write(@cask.config_path) + @cask.config_path.atomic_write(@cask.config.to_json) end def uninstall