Nikolay Sivov : dwrite: Remove a couple of useless checks.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 7 08:11:58 CDT 2015


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Jul  6 23:07:39 2015 +0300

dwrite: Remove a couple of useless checks.

---

 dlls/dwrite/layout.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 1fb49c1..d91da0d 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -1389,16 +1389,12 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
         while (erun && erun->line == line) {
             erun->origin_y = origin_y;
             erun = layout_get_next_erun(layout, erun);
-            if (!erun)
-                break;
         }
 
         /* Same for inline runs */
         while (inrun && inrun->line == line) {
             inrun->origin_y = origin_y;
             inrun = layout_get_next_inline_run(layout, inrun);
-            if (!inrun)
-                break;
         }
 
         layout->metrics.height += layout->lines[line].height;




More information about the wine-cvs mailing list