Remove Session appservice

It's no longer needed, and the naming can raise confusion.
This commit is contained in:
Arjan Molenaar 2021-10-03 13:04:50 +02:00
parent a35af59de2
commit 89d10ce190
No known key found for this signature in database
GPG Key ID: BF977B918996CB13
2 changed files with 0 additions and 19 deletions

View File

@ -1,18 +0,0 @@
from gaphor.abc import Service
class Session(Service):
"""Application service.
Get the active session.
"""
def __init__(self, application):
self.application = application
def shutdown(self):
pass
def get_service(self, name):
assert self.application.active_session
return self.application.active_session.get_service(name)

View File

@ -130,7 +130,6 @@ type = "virtualenv"
[tool.poetry.plugins."gaphor.appservices"]
"event_manager" = "gaphor.core.eventmanager:EventManager"
"session" = "gaphor.services.session:Session"
"app_file_manager" = "gaphor.ui.appfilemanager:AppFileManager"
[tool.poetry.plugins."gaphor.services"]