Removed unsed code

I looked through the code. And I can't see that that code is used. everything is handled in PDF class.