Remove warnings about unused code