summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-03-12 20:24:32 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-03-12 20:24:32 +0000
commit88d5649511f1d63d832d36bea348f7d8c128c081 (patch)
treeca2f9bf9ea1e24c3e242c034eb9cc8a8d73fc804
parent58ce6c2bb736d4e096bbeca624fd292fc858c8b0 (diff)
removed long-ifdef'ed-out code
git-svn-id: svn://localhost/ardour2/branches/3.0@9129 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/utils.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 2ea8b73dc2..81d6ddcf71 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -63,21 +63,6 @@ using namespace PBD;
string
legalize_for_path (const string& str)
{
-#if OLD_SCHOOL_PROHIBITIVE
- string::size_type pos;
- string legal_chars = "abcdefghijklmnopqrtsuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_+=: ";
- string legal;
-
- legal = str;
- pos = 0;
-
- while ((pos = legal.find_first_not_of (legal_chars, pos)) != string::npos) {
- legal.replace (pos, 1, "_");
- pos += 1;
- }
-
- return legal;
-#else
string::size_type pos;
string illegal_chars = "/\\"; /* DOS, POSIX. Yes, we're going to ignore HFS */
string legal;
@@ -91,7 +76,6 @@ legalize_for_path (const string& str)
}
return legal;
-#endif
}
string