fix build failure, remove unused variable