Removed the unused retrieve_status() utility from the Mia core application.
This commit is contained in:
parent
755695be38
commit
049b9371e5
@ -59,20 +59,6 @@ def get_previous_post(request):
|
||||
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):
|
||||
"""Stores the status into the session, and returns the status ID that can
|
||||
be used to retrieve the status later with retrieve().
|
||||
|
Loading…
Reference in New Issue
Block a user