From af84e362cc56404c07b176ee24f3eaad165c0b60 Mon Sep 17 00:00:00 2001 From: Robby Candra Date: Fri, 14 Feb 2020 07:59:32 +0700 Subject: [PATCH] Remove unused queue.stopped_N (#16850) --- Marlin/src/MarlinCore.cpp | 1 - Marlin/src/gcode/queue.cpp | 2 +- Marlin/src/gcode/queue.h | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp index f439fb73a8..ecfdcc21b3 100644 --- a/Marlin/src/MarlinCore.cpp +++ b/Marlin/src/MarlinCore.cpp @@ -798,7 +798,6 @@ void stop() { #endif if (IsRunning()) { - queue.stop(); SERIAL_ERROR_MSG(MSG_ERR_STOPPED); LCD_MESSAGEPGM(MSG_STOPPED); safe_delay(350); // allow enough time for messages to get out before stopping diff --git a/Marlin/src/gcode/queue.cpp b/Marlin/src/gcode/queue.cpp index dbef8d2332..4d0861c2bc 100644 --- a/Marlin/src/gcode/queue.cpp +++ b/Marlin/src/gcode/queue.cpp @@ -52,7 +52,7 @@ GCodeQueue queue; * sending commands to Marlin, and lines will be checked for sequentiality. * M110 N sets the current line number. */ -long gcode_N, GCodeQueue::last_N, GCodeQueue::stopped_N = 0; +long gcode_N, GCodeQueue::last_N; /** * GCode Command Queue diff --git a/Marlin/src/gcode/queue.h b/Marlin/src/gcode/queue.h index 11d4130349..10b0ec7643 100644 --- a/Marlin/src/gcode/queue.h +++ b/Marlin/src/gcode/queue.h @@ -35,9 +35,7 @@ public: * commands to Marlin, and lines will be checked for sequentiality. * M110 N sets the current line number. */ - static long last_N, stopped_N; - - static inline void stop() { stopped_N = last_N; } + static long last_N; /** * GCode Command Queue