-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Get rid of "unused variable" warnings #31876
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3fd9cf6
WIP remove unused variable warnings
6ff4802
Remove TODO
efc0a46
iter
ae0b69d
Remove version variables, leftovers from 6861d357
ebd5f95
Merge branch 'master' into remove-unused-variables
076c36c
ScoreMode isn't used anymore, its CombineFunctions now
a2ec6cd
iter
d7b5e41
iter
77820c7
Remove loop that is never going to be executed
ca69bdc
Remove unused params from SSource and Walker
793fbe0
Merge branch 'master' into remove-unused-variables
4aa37f2
Merge branch 'master' into remove-unused-variables
b276197
Merge branch 'master' into remove-unused-variables
ef4af7d
Merge branch 'master' into remove-unused-variables
4d58df5
Merge branch 'master' into remove-unused-variables
9a4c0cb
Merge branch 'master' into remove-unused-variables
2720ae3
Re-add accidentally removed import
4bb6045
Merge branch 'master' into remove-unused-variables
fb96b0c
Merge branch 'master' into remove-unused-variables
c61e6e9
Merge branch 'master' into remove-unused-variables
643f2b5
Merge branch 'master' into remove-unused-variables
95f1adf
Merge branch 'master' into remove-unused-variables
fd344db
Merge branch 'master' into remove-unused-variables
95d8624
Merge branch 'master' into remove-unused-variables
ff0d7f4
Merge branch 'master' into remove-unused-variables
52979f1
Merge branch 'master' into remove-unused-variables
654f350
iteration: adressing comments
f407932
Muting MovAvgIT#testBadModelParams
21118b1
iter
460a7fa
Revert removing code in TemplateUpdateServiceTests
a5cc0c8
Merge branch 'master' into remove-unused-variables
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,10 +298,10 @@ public void testParsingAndToQuery12() throws IOException { | |
assertGeoDistanceRangeQuery(query, 40, -70, 12, DistanceUnit.DEFAULT); | ||
} | ||
|
||
private void assertGeoDistanceRangeQuery(String query, double lat, double lon, double distance, DistanceUnit distanceUnit) throws IOException { | ||
// just parse the query | ||
private void assertGeoDistanceRangeQuery(String query, double lat, double lon, double distance, DistanceUnit distanceUnit) | ||
throws IOException { | ||
parseQuery(query).toQuery(createShardContext()); | ||
// TODO: what can we check? | ||
// TODO: what can we check? See https://github.com/elastic/elasticsearch/issues/34043 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for creating the issue! |
||
} | ||
|
||
public void testFromJson() throws IOException { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is highlighted as unused in my IDE.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats weird, doesn't show up in my IDE and token is definitly used here. Can you check again?