Skip to content

Commit 996dbb1

Browse files
committed
Remove unnecessary destX/destY arguments.
1 parent 001fe7f commit 996dbb1

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

js/load-image-scale.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@
8282
sourceY,
8383
sourceWidth,
8484
sourceHeight,
85-
destX,
86-
destY,
8785
destWidth,
8886
destHeight,
8987
options
@@ -100,8 +98,8 @@
10098
sourceY,
10199
sourceWidth,
102100
sourceHeight,
103-
destX,
104-
destY,
101+
0,
102+
0,
105103
destWidth,
106104
destHeight
107105
)
@@ -252,8 +250,6 @@
252250
sourceY,
253251
sourceWidth,
254252
sourceHeight,
255-
0,
256-
0,
257253
canvas.width,
258254
canvas.height,
259255
options
@@ -273,8 +269,6 @@
273269
0,
274270
sourceWidth,
275271
sourceHeight,
276-
0,
277-
0,
278272
sourceWidth,
279273
sourceHeight,
280274
options
@@ -291,8 +285,6 @@
291285
sourceY,
292286
sourceWidth,
293287
sourceHeight,
294-
0,
295-
0,
296288
destWidth,
297289
destHeight,
298290
options

0 commit comments

Comments
 (0)