Skip to content

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.

3 participants