riched20: Remove redundant 'return;' statements.

Dmitry Timoshkov dmitry at baikal.ru
Sun Feb 17 21:36:49 CST 2013


---
 dlls/riched20/caret.c | 1 -
 dlls/riched20/paint.c | 4 ----
 2 files changed, 5 deletions(-)

diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 76c169b..025ba9f 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -245,7 +245,6 @@ ME_GetCursorCoordinates(ME_TextEditor *editor, ME_Cursor *pCursor,
        + run->member.run.pt.y - pSizeRun->member.run.nAscent
        - editor->vert_si.nPos;
   ME_DestroyContext(&c);
-  return;
 }
 
 
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index 0ab4e2b..2556bae 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -225,7 +225,6 @@ static void get_underline_pen( ME_Style *style, COLORREF color, HPEN *pen )
             break;
         }
     }
-    return;
 }
 
 static void draw_underline( ME_Context *c, ME_Run *run, int x, int y, COLORREF color )
@@ -241,7 +240,6 @@ static void draw_underline( ME_Context *c, ME_Run *run, int x, int y, COLORREF c
         SelectObject( c->hDC, old_pen );
         DeleteObject( pen );
     }
-    return;
 }
 
 /*********************************************************************
@@ -310,7 +308,6 @@ static void get_selection_rect( ME_Context *c, ME_Run *run, int from, int to, in
     r->top = 0;
     r->right = ME_PointFromCharContext( c, run, to );
     r->bottom = cy;
-    return;
 }
 
 
@@ -339,7 +336,6 @@ static void draw_text( ME_Context *c, ME_Run *run, int x, int y, BOOL selected,
     draw_underline( c, run, x, y, text_color );
 
     ME_DestroyString( masked );
-    return;
 }
 
 
-- 
1.8.1.3




More information about the wine-patches mailing list