remove unused code

SortedDict wasn't even imported in this file, so this never could have worked.