Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: webrtc/base/scoped_ptr.h

Issue 1942823002: Remove webrtc/base/scoped_ptr.h (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: fix additional scoped_ptr uses that had been added Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/messagehandler.h ('k') | webrtc/common_audio/real_fourier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/scoped_ptr.h
diff --git a/webrtc/base/scoped_ptr.h b/webrtc/base/scoped_ptr.h
deleted file mode 100644
index af515f680110564311a0b761c90e7313bda9af2a..0000000000000000000000000000000000000000
--- a/webrtc/base/scoped_ptr.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2012 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-// This entire file is deprecated, and will be removed in XXXX 2016. Use
-// std::unique_ptr instead!
-
-#ifndef WEBRTC_BASE_SCOPED_PTR_H__
-#define WEBRTC_BASE_SCOPED_PTR_H__
-
-// All these #includes are left to maximize backwards compatibility.
-
-#include <assert.h>
-#include <stddef.h>
-#include <stdlib.h>
-
-#include <algorithm>
-#include <cstddef>
-#include <memory>
-
-#include "webrtc/base/constructormagic.h"
-#include "webrtc/base/template_util.h"
-#include "webrtc/typedefs.h"
-
-namespace rtc {
-
-template <typename T, typename Deleter = std::default_delete<T>>
-using scoped_ptr = std::unique_ptr<T, Deleter>;
-
-// These used to convert between std::unique_ptr and std::unique_ptr. Now they
-// are no-ops.
-template <typename T>
-std::unique_ptr<T> ScopedToUnique(std::unique_ptr<T> up) {
- return up;
-}
-template <typename T>
-std::unique_ptr<T> UniqueToScoped(std::unique_ptr<T> up) {
- return up;
-}
-
-} // namespace rtc
-
-#endif // #ifndef WEBRTC_BASE_SCOPED_PTR_H__
« no previous file with comments | « webrtc/base/messagehandler.h ('k') | webrtc/common_audio/real_fourier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698