From 69683e3985feba24246ed2f894dcee21afc5c34f Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Wed, 4 Sep 2024 03:10:24 -0700 Subject: [PATCH] remove unused opam_remove_broken_package functionality Reviewed By: skcho Differential Revision: D62177499 Privacy Context Container: L1208441 fbshipit-source-id: 24329c2065631ad468fc43ce0e3d522d9e7df6e6 --- scripts/opam_utils.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/opam_utils.sh b/scripts/opam_utils.sh index 89abdde0515..e13a6fa8798 100644 --- a/scripts/opam_utils.sh +++ b/scripts/opam_utils.sh @@ -70,12 +70,3 @@ opam_switch_create_if_needed () { } opam_require_version_2 - -# removes packages that cannot be found by ocamlfind -opam_remove_broken_package () { - local pkg="$1" - if ! ocamlfind query "${pkg}"; then - echo "ocamlfind cannot find ${pkg} package. Removing the package..." - opam remove "${pkg}" || true - fi -}