delete ‘delete ptr’ and add CC_UNUSED_PARAM