Index: mojo/public/environment/lib/buffer_tls.cc |
diff --git a/mojo/public/environment/lib/buffer_tls.cc b/mojo/public/environment/lib/buffer_tls.cc |
deleted file mode 100644 |
index fc31f0f771d1fcad6dabaef27cc4740a75de8194..0000000000000000000000000000000000000000 |
--- a/mojo/public/environment/lib/buffer_tls.cc |
+++ /dev/null |
@@ -1,37 +0,0 @@ |
-// Copyright 2014 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 "mojo/public/environment/buffer_tls.h" |
- |
-#include <assert.h> |
- |
-#include "mojo/public/cpp/utility/lib/thread_local.h" |
-#include "mojo/public/environment/lib/buffer_tls_setup.h" |
- |
-namespace mojo { |
-namespace internal { |
- |
-static ThreadLocalPointer<Buffer> current_buffer; |
- |
-void SetUpCurrentBuffer() { |
- current_buffer.Allocate(); |
-} |
- |
-void TearDownCurrentBuffer() { |
- assert(!current_buffer.Get()); |
- current_buffer.Free(); |
-} |
- |
-Buffer* GetCurrentBuffer() { |
- return current_buffer.Get(); |
-} |
- |
-Buffer* SetCurrentBuffer(Buffer* buf) { |
- Buffer* old_buf = current_buffer.Get(); |
- current_buffer.Set(buf); |
- return old_buf; |
-} |
- |
-} // namespace internal |
-} // namespace mojo |