]> git.lyx.org Git - lyx.git/blobdiff - src/support/os_unix.cpp
Fix some warnings
[lyx.git] / src / support / os_unix.cpp
index 135d3149916eb597ac18fd6b5a06e0cfefd1efe2..3f16dd86563588e5e4ed6da5e6f952c9cf05f1db 100644 (file)
@@ -43,7 +43,7 @@ namespace {
 int argc_ = 0;
 char ** argv_ = 0;
 
-} // namespace anon
+} // namespace
 
 void init(int argc, char ** argv[])
 {
@@ -193,23 +193,6 @@ string latex_path_list(string const & p)
 }
 
 
-bool is_valid_strftime(string const & p)
-{
-       string::size_type pos = p.find_first_of('%');
-       while (pos != string::npos) {
-               if (pos + 1 == string::npos)
-                       break;
-               if (!containsOnly(p.substr(pos + 1, 1),
-                       "aAbBcCdDeEFgGhHIjklmMnOpPrRsStTuUVwWxXyYzZ%+"))
-                       return false;
-               if (pos + 2 == string::npos)
-                     break;
-               pos = p.find_first_of('%', pos + 2);
-       }
-       return true;
-}
-
-
 char const * popen_read_mode()
 {
        return "r";