diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/commands.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/fetch.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/help.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/link.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/linkapps.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/list.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/log.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/tap-info.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/unlinkapps.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/update-report.rb | 5 | ||||
| -rw-r--r-- | Library/Homebrew/dev-cmd/man.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/dev-cmd/pull.rb | 8 |
12 files changed, 0 insertions, 33 deletions
diff --git a/Library/Homebrew/cmd/commands.rb b/Library/Homebrew/cmd/commands.rb index 34f0b14e9..f6445d560 100644 --- a/Library/Homebrew/cmd/commands.rb +++ b/Library/Homebrew/cmd/commands.rb @@ -55,5 +55,4 @@ module Homebrew cmds << f.basename.to_s.sub(/\.(?:rb|sh)$/, "") if f.file? end end - private_class_method :find_internal_commands end diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index f42f140a5..f92ef03b2 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -106,7 +106,6 @@ module Homebrew false end end - private_class_method :retry_fetch? def fetch_fetchable(f) f.clear_cache if ARGV.force? @@ -127,5 +126,4 @@ module Homebrew f.verify_download_integrity(download) end - private_class_method :fetch_fetchable end diff --git a/Library/Homebrew/cmd/help.rb b/Library/Homebrew/cmd/help.rb index c533885ad..793c765ca 100644 --- a/Library/Homebrew/cmd/help.rb +++ b/Library/Homebrew/cmd/help.rb @@ -86,5 +86,4 @@ module Homebrew end.join.strip end end - private_class_method :command_help end diff --git a/Library/Homebrew/cmd/link.rb b/Library/Homebrew/cmd/link.rb index a8612865b..98cf98bf7 100644 --- a/Library/Homebrew/cmd/link.rb +++ b/Library/Homebrew/cmd/link.rb @@ -78,5 +78,4 @@ module Homebrew rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError false end - private_class_method :keg_only? end diff --git a/Library/Homebrew/cmd/linkapps.rb b/Library/Homebrew/cmd/linkapps.rb index 4f46362cc..bd88409aa 100644 --- a/Library/Homebrew/cmd/linkapps.rb +++ b/Library/Homebrew/cmd/linkapps.rb @@ -61,5 +61,4 @@ module Homebrew local = opts.fetch(:local, false) Pathname.new(local ? "~/Applications" : "/Applications").expand_path end - private_class_method :linkapps_target end diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index b6bee87fb..ac13d9c86 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -101,7 +101,6 @@ module Homebrew cd HOMEBREW_PREFIX exec "find", *args end - private_class_method :list_unbrewed def filtered_list names = if ARGV.named.empty? @@ -128,7 +127,6 @@ module Homebrew end end end - private_class_method :filtered_list end class PrettyListing diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb index 734460e88..81f972b02 100644 --- a/Library/Homebrew/cmd/log.rb +++ b/Library/Homebrew/cmd/log.rb @@ -29,5 +29,4 @@ module Homebrew args += ["--", path] unless path.nil? exec "git", "log", *args end - private_class_method :git_log end diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb index 71a98813d..f31bf480c 100644 --- a/Library/Homebrew/cmd/tap-info.rb +++ b/Library/Homebrew/cmd/tap-info.rb @@ -80,10 +80,8 @@ module Homebrew end end end - private_class_method :print_tap_info def print_tap_json(taps) puts Utils::JSON.dump(taps.map(&:to_hash)) end - private_class_method :print_tap_json end diff --git a/Library/Homebrew/cmd/unlinkapps.rb b/Library/Homebrew/cmd/unlinkapps.rb index 0df6de929..d04ef9ee4 100644 --- a/Library/Homebrew/cmd/unlinkapps.rb +++ b/Library/Homebrew/cmd/unlinkapps.rb @@ -25,7 +25,6 @@ module Homebrew unlinkapps_from_dir(linkapps_target(local: false), opts) unlinkapps_from_dir(linkapps_target(local: true), opts) end - private_class_method :unlinkapps_prune def unlinkapps_from_dir(target_dir, opts = {}) return unless target_dir.directory? @@ -58,7 +57,6 @@ module Homebrew puts "Unlinked #{n} app#{plural(n)} from #{target_dir}" end end - private_class_method :unlinkapps_from_dir UNLINKAPPS_PREFIXES = %W[ #{HOMEBREW_CELLAR}/ @@ -78,5 +76,4 @@ module Homebrew ARGV.kegs.any? { |keg| app.start_with?("#{keg}/", "#{keg.opt_record}/") } end end - private_class_method :unlinkapps_unlink? end diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index 84faf6289..a7077d8db 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -111,7 +111,6 @@ module Homebrew def shorten_revision(revision) Utils.popen_read("git", "-C", HOMEBREW_REPOSITORY, "rev-parse", "--short", revision).chomp end - private_class_method :shorten_revision def install_core_tap_if_necessary core_tap = CoreTap.instance @@ -121,7 +120,6 @@ module Homebrew ENV["HOMEBREW_UPDATE_BEFORE_HOMEBREW_HOMEBREW_CORE"] = revision ENV["HOMEBREW_UPDATE_AFTER_HOMEBREW_HOMEBREW_CORE"] = revision end - private_class_method :install_core_tap_if_necessary def migrate_legacy_cache_if_necessary legacy_cache = Pathname.new "/Library/Caches/Homebrew" @@ -176,7 +174,6 @@ module Homebrew end end end - private_class_method :migrate_legacy_cache_if_necessary def migrate_legacy_repository_if_necessary return unless HOMEBREW_PREFIX.to_s == "/usr/local" @@ -295,7 +292,6 @@ module Homebrew EOS $stderr.puts e.backtrace end - private_class_method :migrate_legacy_repository_if_necessary def link_completions_and_docs(repository = HOMEBREW_REPOSITORY) command = "brew update" @@ -313,7 +309,6 @@ module Homebrew #{e} EOS end - private_class_method :link_completions_and_docs end class Reporter diff --git a/Library/Homebrew/dev-cmd/man.rb b/Library/Homebrew/dev-cmd/man.rb index 8e645d401..3395fa673 100644 --- a/Library/Homebrew/dev-cmd/man.rb +++ b/Library/Homebrew/dev-cmd/man.rb @@ -44,7 +44,6 @@ module Homebrew cask_markup = (HOMEBREW_LIBRARY/"Homebrew/manpages/brew-cask.1.md").read convert_man_page(cask_markup, TARGET_MAN_PATH/"brew-cask.1") end - private_class_method :regenerate_man_pages def path_glob_commands(glob) Pathname.glob(glob) @@ -57,7 +56,6 @@ module Homebrew end .reject { |s| s.strip.empty? || s.include?("@hide_from_man_page") } end - private_class_method :path_glob_commands def build_man_page template = (SOURCE_PATH/"brew.1.md.erb").read @@ -75,13 +73,11 @@ module Homebrew ERB.new(template, nil, ">").result(variables.instance_eval { binding }) end - private_class_method :build_man_page def sort_key_for_path(path) # Options after regular commands (`~` comes after `z` in ASCII table). path.basename.to_s.sub(/\.(rb|sh)$/, "").sub(/^--/, "~~") end - private_class_method :sort_key_for_path def convert_man_page(markup, target) manual = target.basename(".1") @@ -114,7 +110,6 @@ module Homebrew target.atomic_write ronn.read end end - private_class_method :convert_man_page def target_path_to_format(target) case target.basename @@ -124,5 +119,4 @@ module Homebrew odie "Failed to infer output format from '#{target.basename}'." end end - private_class_method :target_path_to_format end diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index d64ebd4d1..7e6e86a85 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -257,12 +257,10 @@ module Homebrew end published end - private_class_method :publish_changed_formula_bottles def pull_patch(url, description = nil) PatchPuller.new(url, description).pull_patch end - private_class_method :pull_patch class PatchPuller attr_reader :base_url @@ -342,7 +340,6 @@ module Homebrew end { files: files, formulae: formulae, others: others } end - private_class_method :files_changed_in_patch # Get current formula versions without loading formula definition in this process # Returns info as a hash (type => version), for pull.rb's internal use @@ -359,7 +356,6 @@ module Homebrew end versions end - private_class_method :current_versions_from_info_external def subject_for_bump(formula, old, new) if old[:nonexistent] @@ -399,12 +395,10 @@ module Homebrew end subject end - private_class_method :subject_for_bump def pbcopy(text) Utils.popen_write("pbcopy") { |io| io.write text } end - private_class_method :pbcopy # Publishes the current bottle files for a given formula to Bintray def publish_bottle_file_on_bintray(f, creds) @@ -421,7 +415,6 @@ module Homebrew "-d", '{"publish_wait_for_secs": 0}', "https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish" end - private_class_method :publish_bottle_file_on_bintray # Formula info drawn from an external "brew info --json" call class FormulaInfoFromJson @@ -582,5 +575,4 @@ module Homebrew end end end - private_class_method :verify_bintray_published end |
