Remove compute_distance2inner and compute_distance2outer