Index: mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc |
diff --git a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc |
index cd8f37cab81086681160409cb7ca8c8d57ada678..b6add513e5c6167e9194e97563d5ebbb52f46191 100644 |
--- a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc |
+++ b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc |
@@ -41,10 +41,6 @@ class MathCalculatorImpl : public InterfaceImpl<math::Calculator> { |
got_connection_ = true; |
} |
- virtual void OnConnectionError() MOJO_OVERRIDE { |
- delete this; |
- } |
- |
virtual void Clear() MOJO_OVERRIDE { |
client()->Output(total_); |
} |
@@ -164,10 +160,6 @@ class ReentrantServiceImpl : public InterfaceImpl<sample::Service> { |
got_connection_ = true; |
} |
- virtual void OnConnectionError() MOJO_OVERRIDE { |
- delete this; |
- } |
- |
bool got_connection() const { |
return got_connection_; |
} |