Remove unused ostream
This commit is contained in:
committed by
Space
parent
b72aa76415
commit
825b77cc82
@@ -17,7 +17,6 @@
|
||||
#ifndef RUNTIME_MEMORY_H
|
||||
#define RUNTIME_MEMORY_H
|
||||
|
||||
#include <ostream>
|
||||
#include <utility>
|
||||
|
||||
#include "KAssert.h"
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
#ifndef RUNTIME_MM_THREAD_STATE_H
|
||||
#define RUNTIME_MM_THREAD_STATE_H
|
||||
|
||||
#include <ostream>
|
||||
|
||||
#include <Common.h>
|
||||
#include <Utils.hpp>
|
||||
|
||||
@@ -28,10 +26,6 @@ std::string statesToString(std::initializer_list<ThreadState> 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
|
||||
#endif // RUNTIME_MM_THREAD_STATE_H
|
||||
|
||||
Reference in New Issue
Block a user