Remove unused dimension functions.