Removed some redundant code from tsmartptr.h.
Merge pull request #383 from TsudaKageyu/redundant-smartptr2

Removed some redundant code from tsmartptr.h.