Removed some redundant code and CMake checks relevant to tsmartptr.h.