From 814c7f926dfe8d2aa344b5b17c83dcef757334d9 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Fri, 28 Sep 2018 11:50:18 -0400 Subject: [PATCH] Drop unused peek method (this used unencoded ids) --- lib/galaxy/webapps/galaxy/controllers/root.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/controllers/root.py b/lib/galaxy/webapps/galaxy/controllers/root.py index 3670a7de50d..a5d65224260 100644 --- a/lib/galaxy/webapps/galaxy/controllers/root.py +++ b/lib/galaxy/webapps/galaxy/controllers/root.py @@ -266,20 +266,6 @@ class RootController( controller.JSAppLauncher, UsesAnnotations ): else: return "No data with id=%d" % id - @web.expose - def peek(self, trans, id=None): - """Returns a 'peek' at the data. - """ - # TODO: unused? - # TODO: unencoded id - data = trans.sa_session.query( self.app.model.HistoryDatasetAssociation ).get( id ) - if data: - yield "
"
-            yield data.peek
-            yield "
" - else: - yield "No data with id=%d" % id - # ---- History management ----------------------------------------------- @web.expose def history_delete( self, trans, id ):