Core/Threading: Remove unused code from LockedQueue
Signed-off-by: luis <[email protected]>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
#ifndef TRINITYCORE_LOCKED_QUEUE_H
|
||||
#define TRINITYCORE_LOCKED_QUEUE_H
|
||||
|
||||
#include "Concepts.h"
|
||||
#include <deque>
|
||||
#include <mutex>
|
||||
|
||||
@@ -31,9 +30,6 @@ class LockedQueue
|
||||
//! Storage backing the queue.
|
||||
StorageType _queue;
|
||||
|
||||
//! Cancellation flag.
|
||||
bool _canceled = false;
|
||||
|
||||
public:
|
||||
|
||||
//! Adds an item to the queue.
|
||||
@@ -86,20 +82,6 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
//! Cancels the queue.
|
||||
void cancel()
|
||||
{
|
||||
std::scoped_lock lock(_lock);
|
||||
_canceled = true;
|
||||
}
|
||||
|
||||
//! Checks if the queue is cancelled.
|
||||
bool cancelled()
|
||||
{
|
||||
std::scoped_lock lock(_lock);
|
||||
return _canceled;
|
||||
}
|
||||
|
||||
///! Calls pop_front of the queue
|
||||
void pop_front()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user