Repository rules: Remove used function
Repository rules: Remove used function

Related https://github.com/bazelbuild/bazel/issues/8316

RELNOTES: None
PiperOrigin-RevId: 248341590

ButterflyNetwork/bazel,ButterflyNetwork/bazel,cushon/bazel,dslomov/bazel-windows,ulfjack/bazel,bazelbuild/bazel,meteorcloudy/bazel,safarmer/bazel,cushon/bazel,davidzchen/bazel,aehlig/bazel,ulfjack/bazel,davidzchen/bazel,meteorcloudy/bazel,safarmer/bazel,perezd/bazel,safarmer/bazel,dslomov/bazel,ulfjack/bazel,katre/bazel,bazelbuild/bazel,dslomov/bazel,cushon/bazel,davidzchen/bazel,werkt/bazel,twitter-forks/bazel,aehlig/bazel,meteorcloudy/bazel,dslomov/bazel,dslomov/bazel-windows,werkt/bazel,dslomov/bazel-windows,ulfjack/bazel,perezd/bazel,dslomov/bazel-windows,safarmer/bazel,ButterflyNetwork/bazel,dslomov/bazel-windows,bazelbuild/bazel,safarmer/bazel,aehlig/bazel,perezd/bazel,ulfjack/bazel,dslomov/bazel,davidzchen/bazel,ulfjack/bazel,meteorcloudy/bazel,dslomov/bazel,dslomov/bazel,ButterflyNetwork/bazel,perezd/bazel,katre/bazel,werkt/bazel,dslomov/bazel,bazelbuild/bazel,meteorcloudy/bazel,twitter-forks/bazel,dslomov/bazel-windows,werkt/bazel,davidzchen/bazel,meteorcloudy/bazel,twitter-forks/bazel,aehlig/bazel,akira-baruah/bazel,akira-baruah/bazel,akira-baruah/bazel,davidzchen/bazel,katre/bazel,aehlig/bazel,ulfjack/bazel,aehlig/bazel,cushon/bazel,katre/bazel,akira-baruah/bazel,cushon/bazel,katre/bazel,twitter-forks/bazel,akira-baruah/bazel,bazelbuild/bazel,twitter-forks/bazel,cushon/bazel,meteorcloudy/bazel,safarmer/bazel,perezd/bazel,akira-baruah/bazel,katre/bazel,perezd/bazel,werkt/bazel,aehlig/bazel,twitter-forks/bazel,perezd/bazel,werkt/bazel,davidzchen/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,ButterflyNetwork/bazel