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

...ethods.
Let;s just fix the code.