Remove dead code
authorMagnus Hagander <magnus@hagander.net>
Fri, 26 Jan 2018 10:18:39 +0000 (11:18 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 26 Jan 2018 10:18:39 +0000 (11:18 +0100)
pgweb/security/views.py

index 60d8f0b9ecd899f4bce7e5ac7577f5f6858b0af3..8a8f9cda41b5a7eb4ae4dd52e4f58bc816a26de8 100644 (file)
@@ -26,13 +26,3 @@ def version(request, numtree):
        # It's safe to pass in the value since we get it from the module, not from
        # the actual querystring.
        return _list_patches(request, "EXISTS (SELECT 1 FROM security_securitypatchversion svv WHERE svv.version_id={0} AND svv.patch_id=p.id)".format(version.id))
-       return _list_patches(request, "v.id={0}".format(version.id))
-
-       patches = SecurityPatch.objects.filter(public=True, versions=version).distinct()
-
-       return render_to_response('security/security.html', {
-               'patches': patches,
-               'supported': Version.objects.filter(supported=True),
-               'unsupported': Version.objects.filter(supported=False, tree__gt=0),
-               'version': version,
-       }, NavContext(request, 'support'))