Remove unused

This commit is contained in:
Dimitris Zlatanidis 2023-04-13 09:16:52 +03:00
parent 6332169cc5
commit 9487398738

View file

@ -48,8 +48,8 @@ class Utilities:
def all_installed(self) -> dict:
""" Return all installed packages from /val/log/packages folder. """
# installed_dict: dict = {}
var_log_packages: Path = Path(self.configs.log_packages)
try:
for file in var_log_packages.glob(self.configs.file_pattern):
name = self.split_binary_pkg(file.name)[0]
@ -57,7 +57,6 @@ class Utilities:
if not name.startswith('.') and not self.blacklist_pattern(name):
yield name, file.name
# return installed_dict
except ValueError as err:
logger = logging.getLogger(__name__)
logger.info('%s: %s: %s', self.__class__.__name__,