Skip to content

Commit 57d18cd

Browse files
committed
Removed some unused variables.
1 parent c974d0f commit 57d18cd

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

grunt.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ var // modules
55
fs = require( "fs" ),
66
path = require( "path" ),
77
request = require( "request" ),
8-
util = require( "util" ),
9-
inspect = util.inspect,
108

119
// files
1210
coreFiles = [
@@ -340,7 +338,7 @@ grunt.initConfig({
340338
grunt.registerTask( "testswarm", function( commit, authToken ) {
341339
var testswarm = require( "testswarm" );
342340
var testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/";
343-
require( "testswarm" )( {
341+
testswarm({
344342
url: "http://swarm.jquery.org/api.php?",
345343
pollInterval: 2000,
346344
done: this.async()

ui/jquery.effects.scale.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,7 @@ $.effects.effect.size = function( o, done ) {
267267
$.each([ "top", "left" ], function( idx, pos ) {
268268
el.css( pos, function( _, str ) {
269269
var val = parseInt( str, 10 ),
270-
toRef = idx ? el.to.left : el.to.top,
271-
delta = idx ? el.to.outerWidth - el.from.outerWidth: el.to.outerHeight - el.from.outerHeight,
272-
same = origin[ idx ] === pos,
273-
mid = origin[ idx ] === "middle" || origin[ idx ] === "center";
270+
toRef = idx ? el.to.left : el.to.top;
274271

275272
// if original was "auto", recalculate the new value from wrapper
276273
if ( str === "auto" ) {

ui/jquery.effects.slide.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ $.effects.effect.slide = function( o, done ) {
2323
ref = (direction === "up" || direction === "down") ? "top" : "left",
2424
positiveMotion = (direction === "up" || direction === "left"),
2525
distance,
26-
animation = {},
27-
size;
26+
animation = {};
2827

2928
// Adjust
3029
$.effects.save( el, props );

ui/jquery.ui.position.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ $.ui.position = {
286286
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
287287
overLeft = withinOffset - collisionPosLeft,
288288
overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,
289-
newOverRight,
290-
newOverLeft;
289+
newOverRight;
291290

292291
// element is wider than within
293292
if ( data.collisionWidth > outerWidth ) {
@@ -324,7 +323,6 @@ $.ui.position = {
324323
collisionPosTop = position.top - data.collisionPosition.marginTop,
325324
overTop = withinOffset - collisionPosTop,
326325
overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,
327-
newOverTop,
328326
newOverBottom;
329327

330328
// element is taller than within
@@ -365,7 +363,6 @@ $.ui.position = {
365363
collisionPosLeft = position.left - data.collisionPosition.marginLeft,
366364
overLeft = collisionPosLeft - offsetLeft,
367365
overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,
368-
left = data.my[ 0 ] === "left",
369366
myOffset = data.my[ 0 ] === "left" ?
370367
-data.elemWidth :
371368
data.my[ 0 ] === "right" ?

ui/jquery.ui.tabs.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ $.widget( "ui.tabs", {
167167

168168
refresh: function() {
169169
var next,
170-
that = this,
171170
options = this.options,
172171
lis = this.list.children( ":has(a[href])" );
173172

@@ -362,7 +361,6 @@ $.widget( "ui.tabs", {
362361
// handles show/hide for selecting tabs
363362
_toggle: function( event, eventData ) {
364363
var that = this,
365-
options = that.options,
366364
toShow = eventData.newPanel,
367365
toHide = eventData.oldPanel;
368366

@@ -434,8 +432,6 @@ $.widget( "ui.tabs", {
434432
},
435433

436434
_destroy: function() {
437-
var o = this.options;
438-
439435
if ( this.xhr ) {
440436
this.xhr.abort();
441437
}
@@ -517,7 +513,6 @@ $.widget( "ui.tabs", {
517513
load: function( index, event ) {
518514
index = this._getIndex( index );
519515
var that = this,
520-
options = this.options,
521516
anchor = this.anchors.eq( index ),
522517
panel = that._getPanelForTab( anchor ),
523518
eventData = {

0 commit comments

Comments
 (0)