diff --git a/repos/base-codezero/src/base/env/utcb.cc b/repos/base-codezero/src/base/env/utcb.cc
index 1272dc3ed0..0ef94bef3c 100644
--- a/repos/base-codezero/src/base/env/utcb.cc
+++ b/repos/base-codezero/src/base/env/utcb.cc
@@ -15,16 +15,6 @@
#include
-/**
- * Resolve 'Thread_base::myself' when not linking the thread library
- *
- * This weak symbol is primarily used by test cases. Most other Genode programs
- * use the thread library. If the thread library is not used, 'myself' can only
- * be called by the main thread, for which 'myself' is defined as zero.
- */
-Genode::Thread_base * __attribute__((weak)) Genode::Thread_base::myself() { return 0; }
-
-
Genode::Native_utcb *Genode::Thread_base::utcb()
{
/*
diff --git a/repos/base-foc/src/base/lock/lock_helper.h b/repos/base-foc/src/base/lock/lock_helper.h
index 6e6027f82d..1cd3d6a446 100644
--- a/repos/base-foc/src/base/lock/lock_helper.h
+++ b/repos/base-foc/src/base/lock/lock_helper.h
@@ -29,14 +29,6 @@ namespace Fiasco {
#include
}
-/**
- * Resolve 'Thread_base::myself' when not linking the thread library
- *
- * This weak symbol is primarily used by test cases. Most other Genode programs
- * use the thread library. If the thread library is not used, 'myself' can only
- * be called by the main thread, for which 'myself' is defined as zero.
- */
-Genode::Thread_base * __attribute__((weak)) Genode::Thread_base::myself() { return 0; }
/**
* Yield CPU time
diff --git a/repos/base-linux/src/base/lock/lock_helper.h b/repos/base-linux/src/base/lock/lock_helper.h
index f7d34cdc5b..5496e2faca 100644
--- a/repos/base-linux/src/base/lock/lock_helper.h
+++ b/repos/base-linux/src/base/lock/lock_helper.h
@@ -28,16 +28,6 @@
extern int main_thread_futex_counter;
-/**
- * Resolve 'Thread_base::myself' when not linking the thread library
- *
- * This weak symbol is primarily used by test cases. Most other Genode programs
- * use the thread library. If the thread library is not used, 'myself' can only
- * be called by the main thread, for which 'myself' is defined as zero.
- */
-Genode::Thread_base * __attribute__((weak)) Genode::Thread_base::myself() { return 0; }
-
-
static inline void thread_yield()
{
struct timespec ts = { 0, 1000 };