removed long-ifdef'ed-out code
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 12 Mar 2011 20:24:32 +0000 (20:24 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 12 Mar 2011 20:24:32 +0000 (20:24 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9129 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/utils.cc

index 2ea8b73dc262da227f7500b392d7f0f253e64246..81d6ddcf71b649720e47f735f16f9d81e5bc1709 100644 (file)
@@ -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