removed redundant parent variable in getPrev/NextSibling methods.

I'm not sure why I did that in the first place.