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:
kwiberg
2016-03-11 14:40:52 -08:00
committed by Commit bot
parent 3102294fc0
commit 0149e7595e
5 changed files with 7 additions and 43 deletions

View File

@ -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() {