Remove unused variable in C template