From 0b6ad177c54c8f14c2f48fae16fbeb422c463280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Dom=C3=ADnguez?= Date: Tue, 3 Sep 2024 13:45:24 +0200 Subject: [PATCH] Remove dead code `InteractiveToolPropagatorSQLAlchemy.get()` --- lib/galaxy/managers/interactivetool.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/galaxy/managers/interactivetool.py b/lib/galaxy/managers/interactivetool.py index 11cf5bbd8588..b25ac16a67b6 100644 --- a/lib/galaxy/managers/interactivetool.py +++ b/lib/galaxy/managers/interactivetool.py @@ -57,21 +57,6 @@ def __init__(self, database_url, encode_id): self._engine = create_engine(database_url) self._encode_id = encode_id - def get(self, key, key_type): - with self._engine.connect() as conn: - stmt = select(*gxitproxy.c["token", "host", "port", "info"]).where( - gxitproxy.c.key == key, - gxitproxy.c.key_type == key_type, - ) - cursor_result = conn.execute(stmt) - result = cursor_result.fetchone() - - if result is None: - log.warning("get(): invalid key: %s key_type %s", key, key_type) - return None - - return dict(key=key, key_type=key_type, **dict(zip(cursor_result.keys(), result))) - def save(self, key, key_type, token, host, port, info=None): """ Write out a key, key_type, token, value store that is can be used for coordinating with external resources.