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

While working on #7271 I found those.

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