Removing useless methods and method parameters from ObjectMapper.java and TypeParsers.java

While working on #7271 I found some methods that were not being used (I searched for the names too, to see if I could find any reflective calls) and some method parameters too.

To make it easier to merge #7271 I am submitting this as a side Pull request.

I've ran all tests and they OK!

Thanks