Fix build error, remove unused variable