summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-01-13 19:48:55 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-01-13 19:48:55 +0000
commit6817b59169b2c334245f8018d7e3f2235e195aa0 (patch)
tree030f9138e15dbae4d033083c3e5b89a41367345c /gtk2_ardour/utils.cc
parentf5aef674d3c7a6541932be6e835d4e35f4be7920 (diff)
Moved strip_whitespace_edges() to pbd/whitespace.h
Gtkmm2ext::Prompter::get_result() calls strip_whitespace_edges(), so you don't have to. Removed unused/unecessary/forgotten headers from libpbd. git-svn-id: svn://localhost/trunk/ardour2@270 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc
index 1c4fc2a452..acc9574a18 100644
--- a/gtk2_ardour/utils.cc
+++ b/gtk2_ardour/utils.cc
@@ -147,32 +147,6 @@ atof (const string& s)
return atof (s.c_str());
}
-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);
-}
-
vector<string>
internationalize (const char **array)
{