Remove the (previosly deprecated) Pass methods
Everyone should be using std::move instead. BUG=webrtc:5373 Review URL: https://codereview.webrtc.org/1778243006 Cr-Commit-Position: refs/heads/master@{#11962}
This commit is contained in:
@ -18,7 +18,6 @@
|
||||
#include "webrtc/base/array_view.h"
|
||||
#include "webrtc/base/checks.h"
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/deprecation.h"
|
||||
|
||||
namespace rtc {
|
||||
|
||||
@ -229,15 +228,6 @@ class Buffer {
|
||||
RTC_DCHECK(IsConsistent());
|
||||
}
|
||||
|
||||
// b.Pass() does the same thing as std::move(b).
|
||||
// Deprecated; remove in March 2016 (bug 5373).
|
||||
RTC_DEPRECATED Buffer&& Pass() { return DEPRECATED_Pass(); }
|
||||
|
||||
Buffer&& DEPRECATED_Pass() {
|
||||
RTC_DCHECK(IsConsistent());
|
||||
return std::move(*this);
|
||||
}
|
||||
|
||||
// Resets the buffer to zero size without altering capacity. Works even if the
|
||||
// buffer has been moved from.
|
||||
void Clear() {
|
||||
|
||||
Reference in New Issue
Block a user