remove variables that are defined but not used from LinkEstimatorP