Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type. draft
authorNitish <nitishplus98@gmail.com>
Sun, 29 Jan 2017 14:33:14 +0530
changeset 480525 7b2183f3ef23
parent 467750 e7b795db8b5b
child 494185 886662aa41dd
push id44571
push userbmo:nitishplus98@gmail.com
push dateWed, 08 Feb 2017 12:40:45 +0000
bugs1334795
milestone54.0a1
Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type. MozReview-Commit-ID: G4X2vXT6Eam
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -1125,18 +1125,16 @@ nsWindow::Resize(double aWidth, double a
 
     NotifyRollupGeometryChange();
     ResizePluginSocketWidget();
 
     // 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);
@@ -1155,18 +1153,16 @@ nsWindow::Resize(double aX, double aY, d
     NativeMoveResize();
 
     NotifyRollupGeometryChange();
     ResizePluginSocketWidget();
 
     if (mIsTopLevel || mListenForResizes) {
         DispatchResized();
     }
-
-    return;
 }
 
 void
 nsWindow::ResizePluginSocketWidget()
 {
     // e10s specific, a eWindowType_plugin_ipc_chrome holds its own
     // nsPluginNativeWindowGtk wrapper. We are responsible for resizing
     // the embedded socket widget.