remove unused ref types.
fix analyzer warning.