From 4fe22a4f393e5e7731a07405767571da021602da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 16:29:52 +0000 Subject: Remove redundant Path::is_valid_name and Path::nameify. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4671 a436a847-0d15-0410-975c-d299462d15a1 --- src/Path.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/Path.cpp') diff --git a/src/Path.cpp b/src/Path.cpp index 8bc4f89..2bf194d 100644 --- a/src/Path.cpp +++ b/src/Path.cpp @@ -129,25 +129,6 @@ Path::pathify(const std::basic_string& str) return path; } -/** Convert a string to a valid name (or "method" - tokens between slashes) - * - * This will strip all slashes, etc, and always return a valid name/method. - */ -string -Path::nameify(const std::basic_string& str) -{ - string name = str; - - if (name.length() == 0) - return "_"; // this might not be wise - - replace_invalid_chars(name, 0, true); - - assert(is_valid(string("/") + name)); - - return name; -} - /** Replace any invalid characters in @a str with a suitable replacement. */ void -- cgit v1.2.1