Removed unused method parameter. Never used. Simplified code.

Some unused code makes it harder to reuse. I am removing method parameter. 
No code was really using it. In tests only null was passed. There's no point to keep it.