summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 21:56:15 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 21:56:15 +0000
commit3a8b058d8c2eb1a6345196fdf8158593a3bcfeef (patch)
treed74e85833e135bf32150dcfc46126666d3c49b76 /mojo
parent5e3295b097dfbb98649faa41e1d08bc19988c322 (diff)
downloadchromium_src-3a8b058d8c2eb1a6345196fdf8158593a3bcfeef.zip
chromium_src-3a8b058d8c2eb1a6345196fdf8158593a3bcfeef.tar.gz
chromium_src-3a8b058d8c2eb1a6345196fdf8158593a3bcfeef.tar.bz2
Mojo: Remove (unused) mojo/environment/async_waiter_impl.{cc,h}.
I assume these were accidentally added in r244739. We use .../default_async_waiter_impl.* (which are basically identical to .../async_waiter_impl.*, which have never even been compiled AFAICT). R=darin@chromium.org Review URL: https://codereview.chromium.org/331853006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo')
-rw-r--r--mojo/environment/async_waiter_impl.cc51
-rw-r--r--mojo/environment/async_waiter_impl.h19
2 files changed, 0 insertions, 70 deletions
diff --git a/mojo/environment/async_waiter_impl.cc b/mojo/environment/async_waiter_impl.cc
deleted file mode 100644
index ab0599a..0000000
--- a/mojo/environment/async_waiter_impl.cc
+++ /dev/null
@@ -1,51 +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/environment/async_waiter_impl.h"
-
-#include "base/bind.h"
-#include "mojo/common/handle_watcher.h"
-
-namespace mojo {
-namespace internal {
-namespace {
-
-void OnHandleReady(common::HandleWatcher* watcher,
- MojoAsyncWaitCallback callback,
- uintptr_t user_data,
- MojoResult result) {
- delete watcher;
- callback(user_data, result);
-}
-
-MojoAsyncWaitID AsyncWait(MojoAsyncWaiter* waiter,
- MojoHandle handle,
- MojoWaitFlags flags,
- MojoDeadline deadline,
- MojoAsyncWaitCallback callback,
- uintptr_t user_data) {
- // This instance will be deleted when done or cancelled.
- common::HandleWatcher* watcher = new common::HandleWatcher();
- watcher->Start(Handle(handle), flags, deadline,
- base::Bind(&OnHandleReady, watcher, callback, user_data));
- return reinterpret_cast<MojoAsyncWaitID>(watcher);
-}
-
-void CancelWait(MojoAsyncWaiter* waiter, MojoAsyncWaitID wait_id) {
- delete reinterpret_cast<common::HandleWatcher*>(wait_id);
-}
-
-MojoAsyncWaiter s_default_async_waiter = {
- AsyncWait,
- CancelWait
-};
-
-} // namespace
-
-MojoAsyncWaiter* GetDefaultAsyncWaiterImpl() {
- return &s_default_async_waiter;
-}
-
-} // namespace internal
-} // namespace mojo
diff --git a/mojo/environment/async_waiter_impl.h b/mojo/environment/async_waiter_impl.h
deleted file mode 100644
index 1d7335d..0000000
--- a/mojo/environment/async_waiter_impl.h
+++ /dev/null
@@ -1,19 +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.
-
-#ifndef MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_
-#define MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_
-
-#include "mojo/environment/mojo_environment_impl_export.h"
-#include "mojo/public/cpp/environment/async_waiter.h"
-
-namespace mojo {
-namespace internal {
-
-MOJO_ENVIRONMENT_IMPL_EXPORT MojoAsyncWaiter* GetDefaultAsyncWaiterImpl();
-
-} // namespace internal
-} // namespace mojo
-
-#endif // MOJO_ENVIRONMENT_ASYNC_WAITER_IMPL_H_