remove unused variable in addIcon method