Skip to content

Commit

Permalink
chore: remove unused view (#6304)
Browse files Browse the repository at this point in the history
* chore: remove unused view

* chore: deflake

* chore: deflake
  • Loading branch information
rjsparks committed Sep 14, 2023
1 parent bc5c411 commit 20f427e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
10 changes: 0 additions & 10 deletions ietf/help/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Copyright The IETF Trust 2007, All Rights Reserved

import os

from django.shortcuts import get_object_or_404, render

import debug # pyflakes:ignore
Expand Down Expand Up @@ -30,11 +28,3 @@ def state(request, doc, type=None):
statetype = get_object_or_404(StateType, slug=slug)
states = State.objects.filter(used=True, type=statetype).order_by('order')
return render(request, 'help/states.html', {"doc": doc, "type": statetype, "states":states} )

def environment(request):
if request.is_secure():
os.environ['SCHEME'] = "https"
else:
os.environ['SCHEME'] = "http"
os.environ["URL"] = request.build_absolute_uri(".")
return render(request, 'help/environment.html', {"env": os.environ} )
2 changes: 0 additions & 2 deletions ietf/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from ietf.doc import views_search
from ietf.group.urls import group_urls, grouptype_urls, stream_urls
from ietf.help import views as help_views
from ietf.ipr.sitemaps import IPRMap
from ietf.liaisons.sitemaps import LiaisonMap
from ietf.utils.urls import url
Expand Down Expand Up @@ -85,7 +84,6 @@
urlpatterns += staticfiles_urlpatterns()
urlpatterns += [
url(r'^_test500/$', server_error), #utils_views.exception),
url(r'^environment/$', help_views.environment),
## maybe preserve some static legacy URLs ?
url(r'^(?P<path>(?:images|css|js)/.*)$', static_view.serve, {'document_root': settings.STATIC_ROOT+'ietf/'}),
]
Expand Down

0 comments on commit 20f427e

Please sign in to comment.