From 9607de7d17bac46720a686dffb96ce2bf3d5640f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 29 Jun 2013 19:09:55 +0200 Subject: [PATCH] Removed matchesGcode again since it's not needed anymore --- octoprint/util/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/octoprint/util/__init__.py b/octoprint/util/__init__.py index 69dd2e1e..ba817775 100644 --- a/octoprint/util/__init__.py +++ b/octoprint/util/__init__.py @@ -61,9 +61,6 @@ def getExceptionString(): return "%s: '%s' @ %s:%s:%d" % (str(sys.exc_info()[0].__name__), str(sys.exc_info()[1]), os.path.basename(locationInfo[0]), locationInfo[2], locationInfo[1]) -def matchesGcode(line, gcode): - return re.search("^%s(\D|$)" % gcode.strip(), line, re.I) - def getGitInfo(): gitPath = os.path.abspath(os.path.join(os.path.split(os.path.abspath(__file__))[0], "../../.git")) if not os.path.exists(gitPath):