mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
EventHandler: Remove unnecessary CPU usage info
This commit is contained in:
parent
413b76d9a6
commit
f608423045
@ -16,8 +16,6 @@ EventHandler::EventHandler(WebSocketServerPtr webSocketServer) :
|
||||
{
|
||||
blog(LOG_INFO, "[EventHandler::EventHandler] Setting up event handlers...");
|
||||
|
||||
_cpuUsageInfo = os_cpu_usage_info_start();
|
||||
|
||||
obs_frontend_add_event_callback(OnFrontendEvent, this);
|
||||
|
||||
signal_handler_t* coreSignalHandler = obs_get_signal_handler();
|
||||
@ -37,8 +35,6 @@ EventHandler::~EventHandler()
|
||||
{
|
||||
blog(LOG_INFO, "[EventHandler::~EventHandler] Removing event handlers...");
|
||||
|
||||
os_cpu_usage_info_destroy(_cpuUsageInfo);
|
||||
|
||||
obs_frontend_remove_event_callback(OnFrontendEvent, this);
|
||||
|
||||
signal_handler_t* coreSignalHandler = obs_get_signal_handler();
|
||||
|
@ -42,7 +42,6 @@ class EventHandler
|
||||
|
||||
private:
|
||||
WebSocketServerPtr _webSocketServer;
|
||||
os_cpu_usage_info_t *_cpuUsageInfo;
|
||||
|
||||
std::atomic<bool> _obsLoaded;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user