From f01a63d10b75df797b23e07c50668f0798992e50 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 9 Jul 2006 14:44:37 +0000 Subject: [PATCH] * src/graphics/GraphicsConverter.C (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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/graphics/GraphicsConverter.C b/src/graphics/GraphicsConverter.C index 40b7938041..a9e66b2a74 100644 --- a/src/graphics/GraphicsConverter.C +++ b/src/graphics/GraphicsConverter.C @@ -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()) { -- 2.39.2