From 825b77cc8231ad260523d6247cca4760c0dd759a Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Mon, 31 May 2021 16:59:58 +0300 Subject: [PATCH] Remove unused ostream --- kotlin-native/runtime/src/main/cpp/Memory.h | 1 - kotlin-native/runtime/src/mm/cpp/ThreadState.hpp | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/kotlin-native/runtime/src/main/cpp/Memory.h b/kotlin-native/runtime/src/main/cpp/Memory.h index 586c79ee37a..c6bfbff6870 100644 --- a/kotlin-native/runtime/src/main/cpp/Memory.h +++ b/kotlin-native/runtime/src/main/cpp/Memory.h @@ -17,7 +17,6 @@ #ifndef RUNTIME_MEMORY_H #define RUNTIME_MEMORY_H -#include #include #include "KAssert.h" diff --git a/kotlin-native/runtime/src/mm/cpp/ThreadState.hpp b/kotlin-native/runtime/src/mm/cpp/ThreadState.hpp index f5196604174..b13e26ba610 100644 --- a/kotlin-native/runtime/src/mm/cpp/ThreadState.hpp +++ b/kotlin-native/runtime/src/mm/cpp/ThreadState.hpp @@ -6,8 +6,6 @@ #ifndef RUNTIME_MM_THREAD_STATE_H #define RUNTIME_MM_THREAD_STATE_H -#include - #include #include @@ -28,10 +26,6 @@ std::string statesToString(std::initializer_list states) noexcept; const char* ThreadStateName(ThreadState state) noexcept; -inline std::ostream& operator<<(std::ostream& stream, ThreadState state) { - return stream << ThreadStateName(state); -} - // Switches the state of the given thread to `newState` and returns the previous thread state. ALWAYS_INLINE inline ThreadState SwitchThreadState(mm::ThreadData* threadData, ThreadState newState, bool reentrant = false) noexcept { auto oldState = threadData->setState(newState); @@ -59,4 +53,4 @@ ALWAYS_INLINE inline void AssertThreadState(mm::ThreadData* threadData, std::ini } // namespace kotlin -#endif // RUNTIME_MM_THREAD_STATE_H \ No newline at end of file +#endif // RUNTIME_MM_THREAD_STATE_H