зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1648440 - Remove unused return value from Queue::Push. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D81062
This commit is contained in:
Родитель
5431b7ebd7
Коммит
fcdb41af0e
|
@ -37,11 +37,8 @@ struct StorageWithTArray {
|
|||
return !!aStorage.IsEmpty();
|
||||
}
|
||||
|
||||
static bool Push(StorageType& aStorage, const T& aEntry) {
|
||||
// XXX(Bug 1631371) Check if this should use a fallible operation as it
|
||||
// pretended earlier, or change the return type to void.
|
||||
static void Push(StorageType& aStorage, const T& aEntry) {
|
||||
aStorage.AppendElement(aEntry);
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool Pop(StorageType& aStorage, T& aEntry) {
|
||||
|
@ -115,9 +112,9 @@ class Queue : public LockingPolicy {
|
|||
return StoragePolicy::IsEmpty(*mFront) && StoragePolicy::IsEmpty(*mBack);
|
||||
}
|
||||
|
||||
bool Push(const T& aEntry) {
|
||||
void Push(const T& aEntry) {
|
||||
AutoLock lock(*this);
|
||||
return StoragePolicy::Push(*mBack, aEntry);
|
||||
StoragePolicy::Push(*mBack, aEntry);
|
||||
}
|
||||
|
||||
bool Pop(T& aEntry) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче