From e26fc29a3c96eca264d3eca1298b14da195dd25e Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 26 Mar 2004 23:57:40 +0000 Subject: [PATCH] Squash a noisy but useless warning. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8537 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/insetcaption.C | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 6046743729..5a1c607103 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2004-03-25 Angus Leeming + + * insetcaption.C (draw): squash warning about unused variable. + 2004-03-19 Georg Baum * ExternalSupport.C: use the master buffer's temp dir diff --git a/src/insets/insetcaption.C b/src/insets/insetcaption.C index c368c2a2ff..bd71feb8a7 100644 --- a/src/insets/insetcaption.C +++ b/src/insets/insetcaption.C @@ -98,15 +98,12 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const type = static_cast(i2)->params().type; else BOOST_ASSERT(false); -#else - string type = "float"; -#endif FloatList const & floats = pi.base.bv->buffer()->params().getLyXTextClass().floats(); -#if 0 string const fl = i2 ? floats.getType(type).name() : N_("Float"); #else + string type = "float"; string const fl = N_("Float"); #endif