Remove call of atom.getCurrentWindow in atom.setWindowDimensions.

This commit is contained in:
Cheng Zhao
2014-02-03 19:11:01 +08:00
parent 5912ac1d1b
commit c30f74ef9e

View File

@@ -196,7 +196,6 @@ class Atom extends Model
# + width: The new width.
# + height: The new height.
setWindowDimensions: ({x, y, width, height}) ->
browserWindow = @getCurrentWindow()
if width? and height?
ipc.sendChannel('call-window-method', 'setSize', width, height)
if x? and y?