Remove Thread::getThreadId() and Thread::getThreadHandle() as they are unused.