summaryrefslogtreecommitdiff
path: root/libs/ardour/utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r--libs/ardour/utils.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 4933cd7e5c..beb003e713 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -627,26 +627,6 @@ bool_as_string (bool yn)
return (yn ? "yes" : "no");
}
-bool
-string_is_affirmative (const std::string& str)
-{
- /* to be used only with XML data - not intended to handle user input */
-
- if (str.empty ()) {
- return false;
- }
-
- /* the use of g_strncasecmp() is solely to get around issues with
- * charsets posed by trying to use C++ for the same
- * comparison. switching a std::string to its lower- or upper-case
- * version has several issues, but handled by default
- * in the way we desire when doing it in C.
- */
-
- return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length())) ||
- (!g_strncasecmp(str.c_str(), "true", str.length()));
-}
-
const char*
native_header_format_extension (HeaderFormat hf, const DataType& type)
{