[hackers] [st][PATCH] Remove unreachable code

From: Iouri Kloubakov <dev_AT_exoton.com>
Date: Wed, 5 Oct 2016 05:27:25 -0400

Hi,

This is my first small patch.

---
  st.c | 2 --
  1 file changed, 2 deletions(-)
diff --git a/st.c b/st.c
index 6c16386..a6a4fc4 100644
--- a/st.c
+++ b/st.c
_AT_@ -3756,8 +3756,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
  	if (base.fg == defaultfg) {
  		if (base.mode & ATTR_ITALIC)
  			base.fg = defaultitalic;
-		else if ((base.mode & ATTR_ITALIC) && (base.mode & ATTR_BOLD))
-			base.fg = defaultitalic;
  		else if (base.mode & ATTR_UNDERLINE)
  			base.fg = defaultunderline;
  	}
-- 
2.7.4
Received on Wed Oct 05 2016 - 11:27:25 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 05 2016 - 11:36:16 CEST