TSAGE: Fix CID 1002371, 1002372, 1002373. Remove useless variable and associated code.