Michael Stefaniuc : usp10: Removed unused variable (PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 29 07:36:58 CDT 2014


Module: wine
Branch: master
Commit: 75858599864211bce3a6bb96d216fbee0466e775
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=75858599864211bce3a6bb96d216fbee0466e775

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Oct 28 23:37:00 2014 +0100

usp10: Removed unused variable (PVS-Studio).

---

 dlls/usp10/opentype.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/usp10/opentype.c b/dlls/usp10/opentype.c
index 166d823..dd9c8c4 100644
--- a/dlls/usp10/opentype.c
+++ b/dlls/usp10/opentype.c
@@ -924,10 +924,9 @@ static INT GSUB_apply_LigatureSubst(const OT_LookupTable *look, WORD *glyphs, IN
 static INT GSUB_apply_ChainContextSubst(const OT_LookupList* lookup, const OT_LookupTable *look, WORD *glyphs, INT glyph_index, INT write_dir, INT *glyph_count)
 {
     int j;
-    BOOL done = FALSE;
 
     TRACE("Chaining Contextual Substitution Subtable\n");
-    for (j = 0; j < GET_BE_WORD(look->SubTableCount) && !done; j++)
+    for (j = 0; j < GET_BE_WORD(look->SubTableCount); j++)
     {
         const GSUB_ChainContextSubstFormat1 *ccsf1;
         int offset;




More information about the wine-cvs mailing list