Remove unused code

This stuff isn't used anywhere.
worth noting that this method is defined in 3 places (prior to removal here). maybe it should be moved into utils.