Removed the unused retrieve_status() utility from the Mia core application.

This commit is contained in:
依瑪貓 2020-08-09 13:27:36 +08:00
parent 755695be38
commit 049b9371e5

View File

@ -59,20 +59,6 @@ def get_previous_post(request):
return status["form"] return status["form"]
def retrieve_status(request):
"""Retrieves the previously-stored status.
Args:
request (HttpRequest): The request.
Returns:
dict: The previously-stored status.
"""
if "s" not in request.GET:
return None
return _retrieve(request, request.GET["s"])
def _store(request, status): def _store(request, status):
"""Stores the status into the session, and returns the status ID that can """Stores the status into the session, and returns the status ID that can
be used to retrieve the status later with retrieve(). be used to retrieve the status later with retrieve().