[c] remove unused variables