Bug 1334795 - nsWindow.cpp: remove two redundant return statements at the ends of functions with void return type.
MozReview-Commit-ID: G4X2vXT6Eam
--- 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.