summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/tools/peltool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/openpower-pels/tools/peltool.cpp')
-rw-r--r--extensions/openpower-pels/tools/peltool.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/extensions/openpower-pels/tools/peltool.cpp b/extensions/openpower-pels/tools/peltool.cpp
index f1d5f59..ed6daa2 100644
--- a/extensions/openpower-pels/tools/peltool.cpp
+++ b/extensions/openpower-pels/tools/peltool.cpp
@@ -182,21 +182,6 @@ std::vector<uint8_t> getFileData(const std::string& name)
}
}
-/**
- * @brief helper function to trim trailing whitespaces
- * @return std::string - trimmed string
- * @param[in] std::string - string to trim
- */
-const char* ws = " \t\n\r\f\v";
-std::string trim(std::string s, const char* t = ws)
-{
- if (s.find_last_not_of(t) != std::string::npos)
- {
- s.erase(s.find_last_not_of(t) + 1);
- }
- return s;
-}
-
template <typename T>
std::string genPELJSON(T itr, bool hidden, message::Registry& registry)
{
OpenPOWER on IntegriCloud