X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fos_unix.cpp;h=34cfd478a61650ce9bcb0beec5a204886bd34dee;hb=e8c1cb5074e36a344553d57537f8177345a86686;hp=7afa5db48e5594c41b4de0bc7d6ee889cd294cd8;hpb=b5c2859a92b2e29c88156a82abc0b314265f761d;p=lyx.git diff --git a/src/support/os_unix.cpp b/src/support/os_unix.cpp index 7afa5db48e..34cfd478a6 100644 --- a/src/support/os_unix.cpp +++ b/src/support/os_unix.cpp @@ -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";