Skip to content

Commit 7ea84f8

Browse files
committed
Remove unused variables & unneeded var assignments.
1 parent 6e43cf2 commit 7ea84f8

1 file changed

Lines changed: 4 additions & 31 deletions

File tree

‎scripts/buildplayer.js‎

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -951,12 +951,10 @@
951951
// some controls are aligned on the left, and others on the right
952952

953953
var thisObj, baseSliderWidth, controlLayout, numSections,
954-
i, j, k, controls, $controllerSpan, $sliderDiv, sliderLabel, $pipe, $pipeImg,
955-
svgData, svgPath, control,
956-
$buttonLabel, $buttonImg, buttonImgSrc, buttonTitle, $newButton, iconClass, buttonIcon,
957-
buttonText, position, buttonHeight, buttonWidth, buttonSide, controllerWidth,
958-
tooltipId, tooltipY, tooltipX, tooltipWidth, tooltipStyle, tooltip, tooltipTimerId,
959-
captionLabel, popupMenuId;
954+
i, j, controls, $controllerSpan, $sliderDiv, sliderLabel, $pipe, control,
955+
$buttonLabel, buttonTitle, $newButton, buttonText, position, buttonHeight,
956+
buttonWidth, buttonSide, controllerWidth, tooltipId, tooltipY, tooltipX,
957+
tooltipWidth, tooltipStyle, tooltip, tooltipTimerId, captionLabel, popupMenuId;
960958

961959
thisObj = this;
962960

@@ -1025,31 +1023,6 @@
10251023
}
10261024
else {
10271025
// this control is a button
1028-
if (control === 'volume') {
1029-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/' + this.volumeButton + '.png';
1030-
}
1031-
else if (control === 'fullscreen') {
1032-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/fullscreen-expand.png';
1033-
}
1034-
else if (control === 'slower') {
1035-
if (this.speedIcons === 'animals') {
1036-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/turtle.png';
1037-
}
1038-
else {
1039-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/slower.png';
1040-
}
1041-
}
1042-
else if (control === 'faster') {
1043-
if (this.speedIcons === 'animals') {
1044-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/rabbit.png';
1045-
}
1046-
else {
1047-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/faster.png';
1048-
}
1049-
}
1050-
else {
1051-
buttonImgSrc = this.rootPath + 'button-icons/' + this.iconColor + '/' + control + '.png';
1052-
}
10531026
buttonTitle = this.getButtonTitle(control);
10541027

10551028
// icomoon documentation recommends the following markup for screen readers:

0 commit comments

Comments
 (0)