fixed build error on OS X by removing unused functionality.