mercurial/hgweb/common.py
changeset 7966 aa983c3d94a9
parent 7741 a3d7f99c23c0
child 8225 46293a0c7e9f
--- a/mercurial/hgweb/common.py	Sat Apr 04 10:51:52 2009 +0200
+++ b/mercurial/hgweb/common.py	Sat Apr 04 17:46:11 2009 +0200
@@ -78,25 +78,6 @@
         else:
             raise ErrorResponse(HTTP_SERVER_ERROR, err.strerror)
 
-def style_map(templatepath, style):
-    """Return path to mapfile for a given style.
-
-    Searches mapfile in the following locations:
-    1. templatepath/style/map
-    2. templatepath/map-style
-    3. templatepath/map
-    """
-    locations = style and [os.path.join(style, "map"), "map-"+style] or []
-    locations.append("map")
-    if isinstance(templatepath, str):
-        templatepath = [templatepath]
-    for path in templatepath:
-        for location in locations:
-            mapfile = os.path.join(path, location)
-            if os.path.isfile(mapfile):
-                return mapfile
-    raise RuntimeError("No hgweb templates found in %r" % templatepath)
-
 def paritygen(stripecount, offset=0):
     """count parity of horizontal stripes for easier reading"""
     if stripecount and offset: