keg: remove unused python methods.

This commit is contained in:
Mike McQuaid 2024-04-15 08:35:32 +01:00 committed by GitHub
parent 060fb92527
commit 4c0a1c7a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -361,17 +361,6 @@ class Keg
!Dir["#{path}/*.plist"].empty?
end
def python_site_packages_installed?
# odeprecated "Keg#python_site_packages_installed?"
(path/"lib/python2.7/site-packages").directory?
end
sig { returns(T::Boolean) }
def python_pth_files_installed?
# odeprecated "Keg#python_pth_files_installed?"
!Dir["#{path}/lib/python2.7/site-packages/*.pth"].empty?
end
sig { returns(T::Array[Pathname]) }
def apps
app_prefix = optlinked? ? opt_record : path