PDA

View Full Version : add ListStore.removeAt(index) method?



elirov
28 Aug 2009, 1:33 PM
Can we get a ListStore.removeAt(Integer) function that does the same thing as remove(M model), but without having to search through the entire ListStore for the index? The current remove(M model) could find the index of the arg and then call ListStore.removeAt(index) so the API stays the same, except adding the extra function. This would help avoid a nasty O(N^2) situation where we're trying to remove most of the items in a liststore one by one.

Thanks!