Remove ApplicationConnection::ConnectToService(). R=vardhan@google.com BUG=#762 Review URL: https://codereview.chromium.org/1965053002 .
diff --git a/mojo/public/cpp/application/application_connection.h b/mojo/public/cpp/application/application_connection.h index 33a7d04..9e6d39c 100644 --- a/mojo/public/cpp/application/application_connection.h +++ b/mojo/public/cpp/application/application_connection.h
@@ -47,18 +47,6 @@ Interface::Name_); } - // Binds |ptr| to an implemention of Interface in the remote application. - // |ptr| can immediately be used to start sending requests to the remote - // service. - template <typename Interface> - void ConnectToService(InterfacePtr<Interface>* ptr) { - if (ServiceProvider* sp = GetServiceProvider()) { - MessagePipe pipe; - ptr->Bind(InterfaceHandle<Interface>(pipe.handle0.Pass(), 0u)); - sp->ConnectToService(Interface::Name_, pipe.handle1.Pass()); - } - } - // Returns the URL that was used by the source application to establish a // connection to the destination application. //
diff --git a/mojo/public/cpp/application/application_impl.h b/mojo/public/cpp/application/application_impl.h index e1ffe4e..bd6f50c 100644 --- a/mojo/public/cpp/application/application_impl.h +++ b/mojo/public/cpp/application/application_impl.h
@@ -18,8 +18,6 @@ namespace mojo { -class ApplicationConnection; - // Implements the Application interface, which the shell uses for basic // communication with an application (e.g., to connect clients to services // provided by an application). Also provides the application access to the