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

[tools] Disallow unused variables #11097

Merged
merged 3 commits into from
May 22, 2018

Conversation

jugglinmike
Copy link
Contributor

@jugglinmike jugglinmike commented May 21, 2018

This change is Reviewable

Copy link
Member

@gsnedders gsnedders left a comment

Choose a reason for hiding this comment

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

per comment: flake8 config should be kept in sync across tools/tox.ini, tools/wpt/tox.ini, and tools/wptrunner/tox.ini

@jugglinmike
Copy link
Contributor Author

You're right. Sorry I missed that

@jugglinmike
Copy link
Contributor Author

@gsnedders I've updated the other two configuration files, removed the unused variables this exposed, and the tests have passed

Copy link
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

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

Sweet!

@@ -243,7 +243,7 @@ def logger(self):
return self.executor.logger

def get_hash(self, test, viewport_size, dpi):
timeout = test.timeout * self.timeout_multiplier
test.timeout * self.timeout_multiplier
Copy link
Member

Choose a reason for hiding this comment

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

This is dead code, just remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I swear this was a function call last night.

@gsnedders gsnedders merged commit 7f994bd into web-platform-tests:master May 22, 2018
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