Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type. r=karlt
authorNitish <nitishplus98@gmail.com>
Sun, 29 Jan 2017 14:33:14 +0530
changeset 346455 9e21c2dc1b0d
parent 346454 31179f02c5c3
child 346456 ae2fb699c35a
push id38515
push usersledru@mozilla.com
push dateWed, 08 Mar 2017 10:08:55 +0000
treeherderautoland@9e21c2dc1b0d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs1334795
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type. r=karlt MozReview-Commit-ID: G4X2vXT6Eam
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -1112,18 +1112,16 @@ nsWindow::Resize(double aWidth, double a
     NativeResize();
 
     NotifyRollupGeometryChange();
 
     // send a resize notification if this is a toplevel
     if (mIsTopLevel || mListenForResizes) {
         DispatchResized();
     }
-
-    return;
 }
 
 void
 nsWindow::Resize(double aX, double aY, double aWidth, double aHeight,
                  bool aRepaint)
 {
     double scale = BoundsUseDesktopPixels() ? GetDesktopToDeviceScale().scale : 1.0;
     int32_t width = NSToIntRound(scale * aWidth);
@@ -1141,18 +1139,16 @@ nsWindow::Resize(double aX, double aY, d
 
     NativeMoveResize();
 
     NotifyRollupGeometryChange();
 
     if (mIsTopLevel || mListenForResizes) {
         DispatchResized();
     }
-
-    return;
 }
 
 void
 nsWindow::Enable(bool aState)
 {
     mEnabled = aState;
 }