diff --git a/src/octoprint/events.py b/src/octoprint/events.py index f7caa5340..526e0e3e7 100644 --- a/src/octoprint/events.py +++ b/src/octoprint/events.py @@ -231,14 +231,6 @@ class EventManager(object): q.put((event, payload)) - if event == Events.UPDATED_FILES and "type" in payload and payload["type"] == "printables": - # when sending UpdatedFiles with type "printables", also send another event with deprecated type "gcode" - # TODO v1.4.0 Remove again - import copy - legacy_payload = copy.deepcopy(payload) - legacy_payload["type"] = "gcode" - q.put((event, legacy_payload)) - def subscribe(self, event, callback): """ Subscribe a listener to an event -- pass in the event name (as a string) and the callback object diff --git a/src/octoprint/filemanager/analysis.py b/src/octoprint/filemanager/analysis.py index f67fd9dbb..1e40069a1 100644 --- a/src/octoprint/filemanager/analysis.py +++ b/src/octoprint/filemanager/analysis.py @@ -118,10 +118,7 @@ class AnalysisQueue(object): eventManager().fire(Events.METADATA_ANALYSIS_FINISHED, {"name": entry.name, "path": entry.path, "origin": entry.location, - "result": result, - - # TODO: deprecated, remove in a future release - "file": entry.path}) + "result": result}) class AbstractAnalysisQueue(object): """ @@ -260,10 +257,7 @@ class AbstractAnalysisQueue(object): eventManager().fire(Events.METADATA_ANALYSIS_STARTED, {"name": entry.name, "path": entry.path, "origin": entry.location, - "type": entry.type, - - # TODO deprecated, remove in 1.4.0 - "file": entry.path}) + "type": entry.type}) try: result = self._do_analysis(high_priority=high_priority) except TypeError: diff --git a/src/octoprint/plugin/__init__.py b/src/octoprint/plugin/__init__.py index 725bd7240..e718a7aa3 100644 --- a/src/octoprint/plugin/__init__.py +++ b/src/octoprint/plugin/__init__.py @@ -528,38 +528,3 @@ class PluginSettings(object): return _func return getattr(self.settings, item) - - ##~~ deprecated methods follow - - # TODO: Remove with release of 1.3.0 - - globalGet = deprecated("globalGet has been renamed to global_get", - includedoc="Replaced by :func:`global_get`", - since="1.2.0-dev-546")(global_get) - globalGetInt = deprecated("globalGetInt has been renamed to global_get_int", - includedoc="Replaced by :func:`global_get_int`", - since="1.2.0-dev-546")(global_get_int) - globalGetFloat = deprecated("globalGetFloat has been renamed to global_get_float", - includedoc="Replaced by :func:`global_get_float`", - since="1.2.0-dev-546")(global_get_float) - globalGetBoolean = deprecated("globalGetBoolean has been renamed to global_get_boolean", - includedoc="Replaced by :func:`global_get_boolean`", - since="1.2.0-dev-546")(global_get_boolean) - globalSet = deprecated("globalSet has been renamed to global_set", - includedoc="Replaced by :func:`global_set`", - since="1.2.0-dev-546")(global_set) - globalSetInt = deprecated("globalSetInt has been renamed to global_set_int", - includedoc="Replaced by :func:`global_set_int`", - since="1.2.0-dev-546")(global_set_int) - globalSetFloat = deprecated("globalSetFloat has been renamed to global_set_float", - includedoc="Replaced by :func:`global_set_float`", - since="1.2.0-dev-546")(global_set_float) - globalSetBoolean = deprecated("globalSetBoolean has been renamed to global_set_boolean", - includedoc="Replaced by :func:`global_set_boolean`", - since="1.2.0-dev-546")(global_set_boolean) - globalGetBaseFolder = deprecated("globalGetBaseFolder has been renamed to global_get_basefolder", - includedoc="Replaced by :func:`global_get_basefolder`", - since="1.2.0-dev-546")(global_get_basefolder) - getPluginLogfilePath = deprecated("getPluginLogfilePath has been renamed to get_plugin_logfile_path", - includedoc="Replaced by :func:`get_plugin_logfile_path`", - since="1.2.0-dev-546")(get_plugin_logfile_path) diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 60b55d33e..10fa637b1 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -1381,11 +1381,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): result= dict(name=name, path=path, origin=origin, - size=print_job_size, - - # TODO deprecated, remove in 1.4.0 - file=full_path, - filename=name) + size=print_job_size) if position is not None: result["position"] = position diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index 83364246e..bf79251ca 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -392,10 +392,7 @@ def uploadGcodeFile(target): eventManager.fire(Events.UPLOAD, {"name": futureFilename, "path": filename, - "target": target, - - # TODO deprecated, remove in 1.4.0 - "file": filename}) + "target": target}) files = {} location = url_for(".readGcodeFile", target=FileDestinations.LOCAL, filename=filename, _external=True)