rm unused UniqueRefDefs func