remove unnecessary ref to a removed function