Remove useless code

Because gcc doesn't succeed to remove useless code when it is from classes.