From cf33522a2593853125cb98e4151170e1a459e7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Tue, 17 Aug 2021 18:44:33 +0200 Subject: [PATCH] Commenting unused code --- include/thread.h | 5 +++-- lib/thread.cpp | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/thread.h b/include/thread.h index 6684027bc..66143c01b 100644 --- a/include/thread.h +++ b/include/thread.h @@ -34,8 +34,9 @@ class Thread int start(unsigned int ss=64, bool jemalloc_tcache=true); int join(); - int detach(); - pthread_t self(); +// commenting the following code because we don't use it +// int detach(); +// pthread_t self(); virtual void* run() = 0; diff --git a/lib/thread.cpp b/lib/thread.cpp index 8587a98bc..e21f3866d 100644 --- a/lib/thread.cpp +++ b/lib/thread.cpp @@ -69,6 +69,7 @@ int Thread::join() return result; } +/* commenting the following code because we don't use it int Thread::detach() { int result = -1; @@ -84,3 +85,4 @@ int Thread::detach() pthread_t Thread::self() { return m_tid; } +*/