Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables #6765

Merged
merged 1 commit into from
Dec 18, 2015
Merged

Remove unused variables #6765

merged 1 commit into from
Dec 18, 2015

Conversation

timvandermeij
Copy link
Contributor

Found by enabling JSHint's unused option temporarily after the UMD patch landed and manually inspecting its results. The option is not nearly ready to be enabled by default because of many false positives, but it did find some interesting things that this PR addresses.

Furthermore:

@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* globals PDFJS, Promise */
/* globals Promise */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to https://github.com/mozilla/pdf.js/blob/master/.jshintrc#L7, you should also be able to remove Promise here (might apply elsewhere too).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in the new commit for all occurrences I could find.

@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/8bd8408042822d8/output.txt

@timvandermeij
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/399babe669d0edf/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.22.172.223:8877/e6d6405eec3c46d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/399babe669d0edf/output.txt

Total script time: 20.08 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/e6d6405eec3c46d/output.txt

Total script time: 20.24 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@yurydelendik
Copy link
Contributor

Looks good, thank you.

yurydelendik added a commit that referenced this pull request Dec 18, 2015
@yurydelendik yurydelendik merged commit 65de3d6 into mozilla:master Dec 18, 2015
@timvandermeij timvandermeij deleted the unused branch December 18, 2015 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants