remove unused code

SortedDict wasn't even imported in this file, so this never could have worked.
Merge pull request #3243 from dimagi/dead-code

remove unused code