Removed some redundant code from tsmartptr.h.

Oops! I made a similar pull request #374 but I overlooked a lot of redundancy.