aboutsummaryrefslogtreecommitdiffstats
path: root/al/error.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-20 04:11:52 -0700
committerChris Robinson <[email protected]>2020-09-20 04:11:52 -0700
commit191150d9a8e5dea9350030c8d4cade37fcad1695 (patch)
tree3d5cb8b6c70c9bdd688d805f7b0d8e5f41d09c27 /al/error.cpp
parent8ef242bce084fae0689f2148442d10b5d029a512 (diff)
Remove deprecated, performance, and error event types
These would be better served with a proper debug API, rather than a general audio event API.
Diffstat (limited to 'al/error.cpp')
-rw-r--r--al/error.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/al/error.cpp b/al/error.cpp
index b667d14f..79bbc56c 100644
--- a/al/error.cpp
+++ b/al/error.cpp
@@ -38,8 +38,6 @@
#include "alcontext.h"
#include "alexcpt.h"
#include "almalloc.h"
-#include "event.h"
-#include "inprogext.h"
#include "logging.h"
#include "opthelpers.h"
#include "vector.h"
@@ -65,7 +63,6 @@ void ALCcontext::setError(ALenum errorCode, const char *msg, ...)
if(msglen >= 0) msg = message.data();
else msg = "<internal error constructing message>";
- msglen = static_cast<int>(strlen(msg));
WARN("Error generated on context %p, code 0x%04x, \"%s\"\n",
decltype(std::declval<void*>()){this}, errorCode, msg);
@@ -82,14 +79,6 @@ void ALCcontext::setError(ALenum errorCode, const char *msg, ...)
ALenum curerr{AL_NO_ERROR};
mLastError.compare_exchange_strong(curerr, errorCode);
- if((mEnabledEvts.load(std::memory_order_relaxed)&EventType_Error))
- {
- std::lock_guard<std::mutex> _{mEventCbLock};
- ALbitfieldSOFT enabledevts{mEnabledEvts.load(std::memory_order_relaxed)};
- if((enabledevts&EventType_Error) && mEventCb)
- (*mEventCb)(AL_EVENT_TYPE_ERROR_SOFT, 0, static_cast<ALuint>(errorCode), msglen, msg,
- mEventParam);
- }
}
AL_API ALenum AL_APIENTRY alGetError(void)