From 9f11de24d403174f1ba613144252b98a6dcf4353 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 25 Nov 2025 12:52:39 +0100 Subject: [PATCH] webconfig.py: remove dead code --- share/tools/web_config/webconfig.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index ac95e62d7..90ebbde1d 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -912,11 +912,6 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): result.pop() # trim off the trailing element return result - def do_get_color_for_variable(self, name): - "Return the color with the given name, or the empty string if there is none." - out, err = run_fish_cmd("echo -n $" + name) - return out - def do_set_color_for_variable(self, name, color): "Sets a color for a fish color name, like 'fish_color_autosuggestion'" if not name: @@ -1151,9 +1146,6 @@ class FishConfigHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): # print "History: ", end - start elif p == "/sample_prompts/": output = self.do_get_sample_prompts_list() - elif re.match(r"/color/(\w+)/", p): - name = re.match(r"/color/(\w+)/", p).group(1) - output = self.do_get_color_for_variable(name) elif p == "/bindings/": output = self.do_get_bindings() else: