From 7a9629e7a3d5a5945dbb69412d1c1cb358b2664b Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 9 Jan 2019 16:21:22 +0000 Subject: [PATCH] Removed depracated methods --- openflexure_microscope/api/utilities.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/openflexure_microscope/api/utilities.py b/openflexure_microscope/api/utilities.py index e8fba8b4..96afa2a3 100644 --- a/openflexure_microscope/api/utilities.py +++ b/openflexure_microscope/api/utilities.py @@ -47,21 +47,6 @@ def axes_to_array(coordinate_dictionary, axis_keys=['x', 'y', 'z'], base_array=N return base_array -def parse_payload(request): - """Convert request to JSON. Will eventually handle error-checking.""" - # TODO: Handle invalid JSON payloads - state = request.get_json() - return state - - -def get_from_payload(payload, key, default=None): - """Check if a key exists in a JSON/dictionary payload, and returns it.""" - if key in payload: - return payload[key] - else: - return default - - def gen(camera): """Video streaming generator function.""" while True: