It looks like this code is a skeleton of a more correct implementation of this method.