From 79be7955660fe3e7283c1063d48571f17f78c745 Mon Sep 17 00:00:00 2001 From: Sajith Sasidharan Date: Tue, 16 Jun 2020 07:12:08 -0400 Subject: [PATCH] Remove unused want_json() --- src/allmydata/web/check_results.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/allmydata/web/check_results.py b/src/allmydata/web/check_results.py index ffd366385..f675c53bb 100644 --- a/src/allmydata/web/check_results.py +++ b/src/allmydata/web/check_results.py @@ -199,12 +199,6 @@ class ResultsBase(object): assert isinstance(s, (list, tuple)) return [html.escape(w) for w in s] - def want_json(self, req): - output = get_arg(req, "output", "").lower() - if output.lower() == "json": - return True - return False - def _render_si_link(self, req, storage_index): si_s = base32.b2a(storage_index) ophandle = req.prepath[-1]