Remove old unused code

This commit is contained in:
Edward Betts 2021-07-08 15:05:32 +02:00
parent 1777bac20d
commit 31431ecdcb
1 changed files with 0 additions and 17 deletions

View File

@ -164,12 +164,6 @@ def identifier_page(pid):
)
@app.route("/old_map/<int:zoom>/<float(signed=True):lat>/<float(signed=True):lng>")
def old_map_location(zoom, lat, lng):
t = int(time())
return render_template("map.html", zoom=zoom, lat=lat, lng=lng, time=t)
@app.route("/map")
def map_start_page():
loc = get_user_location()
@ -198,17 +192,6 @@ def map_location(zoom, lat, lon):
)
@app.route("/old_map")
def old_map_start_page():
t = int(time())
location = get_user_location()
if not location:
return render_template("map.html", zoom=16, lat=None, lng=None, time=t)
lat, lng = location
return render_template("map.html", zoom=16, lat=lat, lng=lng, time=t)
@app.route("/search/map")
def search_map_page():
user_lat, user_lon = get_user_location() or (None, None)