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

Unified Diff: third_party/libjingle/overrides/allocator_shim/allocator_proxy.cc

Issue 1146123002: Remove unused libpeerconnection code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert a couple of libjingle.gyp changes Created 5 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
Index: third_party/libjingle/overrides/allocator_shim/allocator_proxy.cc
diff --git a/third_party/libjingle/overrides/allocator_shim/allocator_proxy.cc b/third_party/libjingle/overrides/allocator_shim/allocator_proxy.cc
deleted file mode 100644
index 3a6772cc9df0128b2ca311b4ad8f4ce16c2f2199..0000000000000000000000000000000000000000
--- a/third_party/libjingle/overrides/allocator_shim/allocator_proxy.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "third_party/libjingle/overrides/allocator_shim/allocator_stub.h"
-
-#if !defined(LIBPEERCONNECTION_IMPLEMENTATION) || defined(LIBPEERCONNECTION_LIB)
-#error "Only compile the allocator proxy with the shared_library implementation"
-#endif
-
-#if defined(OS_MACOSX) || defined(OS_ANDROID)
-#error "The allocator proxy isn't supported (or needed) on mac or android."
-#endif
-
-extern AllocateFunction g_alloc;
-extern DellocateFunction g_dealloc;
-
-// Override the global new/delete routines and proxy them over to the allocator
-// routines handed to us via InitializeModule.
-
-void* operator new(std::size_t n) throw() {
- return g_alloc(n);
-}
-
-void operator delete(void* p) throw() {
- g_dealloc(p);
-}
« no previous file with comments | « third_party/libjingle/libjingle.gyp ('k') | third_party/libjingle/overrides/allocator_shim/allocator_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698