Locally disabled compiler warnings about unused variables and obsolete m...

...ethods.
Just fix the code.