diff options
Diffstat (limited to 'libs/pbd3/whitespace.cc')
-rw-r--r-- | libs/pbd3/whitespace.cc | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/libs/pbd3/whitespace.cc b/libs/pbd3/whitespace.cc deleted file mode 100644 index 7f74940457..0000000000 --- a/libs/pbd3/whitespace.cc +++ /dev/null @@ -1,30 +0,0 @@ -#include <pbd/whitespace.h> - -using namespace std; - -void -strip_whitespace_edges (string& str) -{ - string::size_type i; - string::size_type len; - string::size_type s; - - len = str.length(); - - for (i = 0; i < len; ++i) { - if (isgraph (str[i])) { - break; - } - } - - s = i; - - for (i = len - 1; i >= 0; --i) { - if (isgraph (str[i])) { - break; - } - } - - str = str.substr (s, (i - s) + 1); -} - |