fix(#15541) : remove useless variables to prevent too long execution time


(cherry picked from commit f6ceb338)
2 jobs for cherry-pick-f6ceb338 in 50 seconds (queued for 40 minutes and 14 seconds)