From 25d0f4d5009b503e24a48d85cd5783b8d30d8d7d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 28 Jun 2013 17:04:59 -0400 Subject: [PATCH] Remove unused URL /book-shifted/ --- lms/djangoapps/staticbook/views.py | 4 ---- lms/urls.py | 2 -- 2 files changed, 6 deletions(-) diff --git a/lms/djangoapps/staticbook/views.py b/lms/djangoapps/staticbook/views.py index 52245525e9..42c66aa4c8 100644 --- a/lms/djangoapps/staticbook/views.py +++ b/lms/djangoapps/staticbook/views.py @@ -36,10 +36,6 @@ def index(request, course_id, book_index, page=None): ) -def index_shifted(request, course_id, page): - return index(request, course_id=course_id, page=int(page) + 24) - - def remap_static_url(original_url, course): """Remap a URL in the ways the course requires.""" # Ick: this should be possible without having to quote and unquote the URL... diff --git a/lms/urls.py b/lms/urls.py index f4bf804976..51c6ba13b7 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -227,8 +227,6 @@ if settings.COURSEWARE_ENABLED: 'staticbook.views.index', name="book"), url(r'^courses/(?P[^/]+/[^/]+/[^/]+)/book/(?P[^/]*)/(?P[^/]*)$', 'staticbook.views.index'), - url(r'^courses/(?P[^/]+/[^/]+/[^/]+)/book-shifted/(?P[^/]*)$', - 'staticbook.views.index_shifted'), url(r'^courses/(?P[^/]+/[^/]+/[^/]+)/pdfbook/(?P[^/]*)/$', 'staticbook.views.pdf_index', name="pdf_book"),