-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset ConfigUtils.cpp
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/ConfigUtils.cpp b/hoot-core/src/main/cpp/hoot/core/util/ConfigUtils.cpp
index 101d6fe..8845cad 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/ConfigUtils.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/util/ConfigUtils.cpp
@@ -31,6 +31,7 @@
#include <hoot/core/util/ConfigOptions.h>
#include <hoot/core/visitors/ApiTagTruncateVisitor.h>
#include <hoot/core/ops/DuplicateNodeRemover.h>
+#include <hoot/core/util/Settings.h>
namespace hoot
{
@@ -75,4 +76,11 @@ void ConfigUtils::checkForDuplicateElementCorrectionMismatch(const QStringList&
}
}
+void ConfigUtils::removeListOpEntry(const QString& opName, const QString& entryToRemove)
+{
+ QStringList opValue = conf().getList(opName);
+ opValue.removeAll(entryToRemove);
+ conf().set(opName, opValue);
+}
+
}