Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e23113f authored by Alexandre Flament's avatar Alexandre Flament
Browse files

[mod] remove unused filter searx.webapp.extract_domain

it was used in the pix-art theme
parent cfa07b0a
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -17,10 +17,7 @@ from html import escape
from io import StringIO

import urllib
from urllib.parse import (
    urlencode,
    urlparse,
)
from urllib.parse import urlencode

import httpx

@@ -349,12 +346,6 @@ def code_highlighter(codelines, language=None):
    return html_code


# Extract domain from url
@app.template_filter('extract_domain')
def extract_domain(url):
    return urlparse(url)[1]


def get_current_theme_name(override=None):
    """Returns theme name.