From 643337aa0c6e8d7cdc4e0af09d4da4d5c7ec2030 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 27 Mar 2008 01:21:52 +0000 Subject: remove older version (#ifdef'ed out) of legalize_for_path() git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3193 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/utils.cc | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'libs') diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index f98b24a4f2..1138684546 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -105,25 +105,6 @@ legalize_for_path (ustring str) return legal; } -#if 0 -string -legalize_for_path (string str) -{ - 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; -} -#endif string bump_name_once(std::string name) { -- cgit v1.2.3