]> git.lyx.org Git - lyx.git/commitdiff
* src/graphics/GraphicsConverter.C
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 9 Jul 2006 14:44:37 +0000 (14:44 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 9 Jul 2006 14:44:37 +0000 (14:44 +0000)
(build_script): replace unused code for equal formats by an assert

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14400 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/GraphicsConverter.C

index 40b793804160bd5d583ad46d9e306b4ca265907f..a9e66b2a743c24de146ef12b0a05bf513851485a 100644 (file)
@@ -326,6 +326,7 @@ bool build_script(string const & from_file,
                  string const & to_format,
                  ostream & script)
 {
+       BOOST_ASSERT(from_format != to_format);
        lyxerr[Debug::GRAPHICS] << "build_script ... ";
        typedef Converters::EdgePath EdgePath;
 
@@ -346,12 +347,6 @@ bool build_script(string const & from_file,
        string const to_file = to_file_base + '.'
                + formats.extension(to_format);
 
-       if (from_format == to_format) {
-               script << move_file(quoteName(from_file), quoteName(to_file));
-               lyxerr[Debug::GRAPHICS] << "ready (from == to)" << endl;
-               return true;
-       }
-
        EdgePath edgepath = converters.getPath(from_format, to_format);
 
        if (edgepath.empty()) {