Skip to content

Commit

Permalink
backend: Remove LibraryManager
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEvilSkeleton committed Feb 4, 2025
1 parent 5625774 commit 2fbda78
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 141 deletions.
132 changes: 0 additions & 132 deletions bottles/backend/managers/library.py

This file was deleted.

8 changes: 0 additions & 8 deletions bottles/backend/managers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
from bottles.backend.dlls.vkd3d import VKD3DComponent
from bottles.backend.globals import Paths
import logging
from bottles.backend.managers.library import LibraryManager
from bottles.backend.managers.template import TemplateManager
from bottles.backend.models.config import BottleConfig
from bottles.backend.models.result import Result
Expand Down Expand Up @@ -1237,13 +1236,6 @@ def delete_bottle(self, config: BottleConfig) -> bool:
for inst in glob(f"{Paths.applications}/{config.Name}--*"):
os.remove(inst)

logging.info("Removing library entries associated with this bottle…")
library_manager = LibraryManager()
entries = library_manager.get_library().copy()
for _uuid, entry in entries.items():
if entry.get("bottle").get("name") == config.Name:
library_manager.remove_from_library(_uuid)

if config.Custom_Path:
logging.info("Removing placeholder…")
with contextlib.suppress(FileNotFoundError):
Expand Down
1 change: 0 additions & 1 deletion bottles/backend/managers/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ managersdir = join_paths(pkgdatadir, 'bottles/backend/managers')

bottles_sources = [
'__init__.py',
'library.py',
'manager.py',
'conf.py',
'template.py',
Expand Down

0 comments on commit 2fbda78

Please sign in to comment.