Skip to content

Remove unused filtering from getQualifiers #48

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

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

thiemowmde
Copy link
Contributor

This gets rid of an other cloning (see #47). But this one is currently not used outside of tests.

  • getFilteredSnakList should do exactly that and not have a special case when the filter is a falsy value.
  • getQualifiers should do exactly that and not do optional filtering.

If you want filtering, call getQualifiers().getFilteredSnakList( propertyId ).

@mariushoch
Copy link
Member

+1: getQualifiers parameter is indeed unused and removing it is in line with the PHP implementation. Not sure how to make sure the getFilteredSnakList change wont have unwanted side effects somewhere.

@thiemowmde
Copy link
Contributor Author

Simply search for .getFilteredSnakList( in our code base. There is no use of this method with no or a falsy parameter. Both features are unused.

@thiemowmde thiemowmde added this to the 2.0.0 milestone Jan 12, 2016
@thiemowmde thiemowmde mentioned this pull request Jan 12, 2016
@thiemowmde thiemowmde force-pushed the getFilteredQualifiers branch from 125720b to d36d7bd Compare January 12, 2016 14:26
mariushoch added a commit that referenced this pull request Jan 12, 2016
Remove unused filtering from getQualifiers
@mariushoch mariushoch merged commit 2220f0b into master Jan 12, 2016
@mariushoch mariushoch deleted the getFilteredQualifiers branch January 12, 2016 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants