From cd7f44cb57a9056aa0c6918f79bc24b012bcbdb5 Mon Sep 17 00:00:00 2001 From: JoveToo Date: Wed, 25 May 2022 16:01:31 +0200 Subject: [PATCH] There are not files with \r-only line endings (#4450) --- src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js b/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js index bb6adadfc..95b77f04b 100644 --- a/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js +++ b/src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js @@ -522,10 +522,6 @@ $(function () { var findThis = self.settings.settings.plugins.gcodeviewer.skipUntilThis(); if (findThis && findThis !== "") { var indexPos = response.indexOf("\n" + findThis); - // Try windows newlines if not found - if (indexPos === -1) { - indexPos = response.indexOf("\r" + findThis); - } if (indexPos !== -1) { // Slice and make sure we comment out any string left back after slicing - so if a user configures something like "G1" we dont end up with a snippet of gcode commands // Yes it would be prettier to parse it line by line and remove the entire line, that is very slow and uses mem - this way we find the string, and remove it