From b2087fda66c47276bb9c755b33a6b8c4498d791f Mon Sep 17 00:00:00 2001 From: Auri Date: Thu, 23 Sep 2021 14:22:53 -0700 Subject: [PATCH] Remove unused source file, remove a wasted assignment. --- src/util/StringParser.cpp | 1 - src/util/StringParser.h | 13 ++++++------- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 src/util/StringParser.cpp diff --git a/src/util/StringParser.cpp b/src/util/StringParser.cpp deleted file mode 100644 index 8ebf65c2..00000000 --- a/src/util/StringParser.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "StringParser.h" diff --git a/src/util/StringParser.h b/src/util/StringParser.h index c9ab29d4..a2ca5394 100644 --- a/src/util/StringParser.h +++ b/src/util/StringParser.h @@ -225,18 +225,17 @@ private: */ const std::pair> parseFunction(const std::string_view& str) const { - let nextParen = str.find_first_of('('); - let nextComma = str.find_first_of(','); + let firstParen = str.find_first_of('('); - let name = str.substr(0, nextParen); + let name = str.substr(0, firstParen); vec args {}; - let end = findClosingParen(str, nextParen); - let s = nextParen + 1; + let end = findClosingParen(str, firstParen); + let s = firstParen + 1; while (s <= end) { - nextParen = str.find_first_of('(', s); - nextComma = str.find_first_of(',', s); + let nextParen = str.find_first_of('(', s); + let nextComma = str.find_first_of(',', s); if (nextParen != string::npos && nextParen < nextComma) nextComma = findClosingParen(str, nextParen) + 1; if (nextComma == string::npos) nextComma = end;