From d4a79d81d2af00198109bca447713f7eb21cd58a Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 13 Sep 2015 14:05:49 +0200 Subject: [PATCH] Remove dead code Thanks to Jean-Marc and coverity for finding it. --- src/mathed/InsetMathSideset.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/mathed/InsetMathSideset.cpp b/src/mathed/InsetMathSideset.cpp index 9bcbf1f09e..6ed74e86c8 100644 --- a/src/mathed/InsetMathSideset.cpp +++ b/src/mathed/InsetMathSideset.cpp @@ -127,15 +127,8 @@ int InsetMathSideset::dybt(BufferView const & bv, int asc, int des, bool top) co int InsetMathSideset::dyb(BufferView const & bv) const { int nd = ndes(bv); - int des = 0; - if (scriptl_ && scriptr_) - des = max(bl().dimension(bv).ascent(), br().dimension(bv).ascent()); - else if (scriptl_) - des = bl().dimension(bv).ascent(); - else if (scriptr_) - des = br().dimension(bv).ascent(); int na = nasc(bv); - des = dybt(bv, na, nd, false); + int des = dybt(bv, na, nd, false); return des; } @@ -143,15 +136,8 @@ int InsetMathSideset::dyb(BufferView const & bv) const int InsetMathSideset::dyt(BufferView const & bv) const { int na = nasc(bv); - int asc = 0; - if (scriptl_ && scriptr_) - asc = max(tl().dimension(bv).descent(), tr().dimension(bv).descent()); - else if (scriptl_) - asc = tl().dimension(bv).descent(); - else if (scriptr_) - asc = tr().dimension(bv).descent(); int nd = ndes(bv); - asc = dybt(bv, na, nd, true); + int asc = dybt(bv, na, nd, true); return asc; }