Skip to content

Commit

Permalink
Merge pull request #15009 from apainintheneck/remove-old-prefix-place…
Browse files Browse the repository at this point in the history
…holder

cask: remove old prefix placeholder
  • Loading branch information
MikeMcQuaid committed Mar 19, 2023
2 parents 96eb047 + 3aae28a commit c5fa3d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions Library/Homebrew/cask/cask.rb
Expand Up @@ -23,9 +23,6 @@ class Cask
HOMEBREW_PREFIX_PLACEHOLDER = "$HOMEBREW_PREFIX"
APPDIR_PLACEHOLDER = "$APPDIR"

# TODO: can be removed when API JSON is regenerated with HOMEBREW_PREFIX_PLACEHOLDER.
HOMEBREW_OLD_PREFIX_PLACEHOLDER = "$(brew --prefix)"

attr_reader :token, :sourcefile_path, :source, :config, :default_config, :loader
attr_accessor :download, :allow_reassignment

Expand Down
3 changes: 0 additions & 3 deletions Library/Homebrew/cask/cask_loader.rb
Expand Up @@ -326,13 +326,10 @@ def load(config:)
end

def from_h_string_gsubs(string, appdir)
# TODO: HOMEBREW_OLD_PREFIX_PLACEHOLDER can be removed when API JSON is
# regenerated with HOMEBREW_PREFIX_PLACEHOLDER.
string.to_s
.gsub(Cask::HOME_PLACEHOLDER, Dir.home)
.gsub(Cask::HOMEBREW_PREFIX_PLACEHOLDER, HOMEBREW_PREFIX)
.gsub(Cask::APPDIR_PLACEHOLDER, appdir)
.gsub(Cask::HOMEBREW_OLD_PREFIX_PLACEHOLDER, HOMEBREW_PREFIX)
end

def from_h_array_gsubs(array, appdir)
Expand Down

0 comments on commit c5fa3d2

Please sign in to comment.