fix build failure, remove unused variable

Fix build failure, remove unused variable.