]> git.lyx.org Git - lyx.git/blobdiff - src/Format.cpp
* sk.po
[lyx.git] / src / Format.cpp
index 7d495b7aa91897b8fe4f56740e3c9a9df787399a..050af1414f69ae0058849c9f26e35af9c68ca961 100644 (file)
@@ -260,27 +260,6 @@ void Formats::setEditor(string const & name, string const & command)
 }
 
 
-bool Formats::viewURL(docstring const & url) {
-       Format const * format = getFormat("html");
-       if (!format)
-               return false;
-
-       string command = libScriptSearch(format->viewer());
-
-       if (!contains(command, token_from_format))
-               command += ' ' + token_from_format;
-       command = subst(command, token_from_format, quoteName(to_utf8(url)));
-
-       LYXERR(Debug::FILES, "Executing command: " << command);
-
-       Systemcall one;
-       one.startscript(Systemcall::DontWait, command);
-
-       // we can't report any sort of error, since we aren't waiting
-       return true;
-}
-
-
 bool Formats::view(Buffer const & buffer, FileName const & filename,
                   string const & format_name) const
 {