Skip to content

Commit ac3e925

Browse files
committed
refactor(build): delete debug and commented-out code
1 parent 94204cb commit ac3e925

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tools/collect-copyright

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
536536
)
537537

538538
def _make_installed_package(self, formula_name: str, formula_version: str) -> InstalledPackage:
539-
print("@@@", formula_name, file=sys.stderr)
540539
# TODO(strager): Cache output of 'brew info'.
541540
brew_info_json = subprocess.check_output(
542541
[pathlib.Path(self.__brew_prefix) / "bin" / "brew", "info", "--json", "--installed"],
@@ -553,20 +552,10 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
553552
raise Exception(f"Could not find formula {formula_name} in output of 'brew info --installed --json'")
554553

555554
installed_path = pathlib.Path(self.__brew_prefix) / "opt" / formula_name
556-
#version = pathlib.Path(os.readlink(installed_path)).name
557-
#install_receipt = json.loads(
558-
# (installed_path / "INSTALL_RECEIPT.json").read_text()
559-
#)
560-
561-
#tap = install_receipt["source"]["tap"]
562555
tap = formula_brew_info["tap"]
563556
if tap != "homebrew/core":
564557
raise Exception(f"Unsupported tap for formula {formula_name}: {tap}")
565-
#tap_git_commit = install_receipt["source"]["tap_git_head"]
566558
tap_git_commit = formula_brew_info["tap_git_head"]
567-
568-
#formula_rb_path = pathlib.Path(install_receipt["source"]["path"])
569-
#formula_rb_repo_path = self._relative_path_within_git_checkout(formula_rb_path)
570559
formula_rb_repo_path = formula_brew_info["ruby_source_path"]
571560

572561
return self.InstalledPackage(

0 commit comments

Comments
 (0)