Index: ui/events/test/cocoa_test_event_utils.mm |
diff --git a/ui/events/test/cocoa_test_event_utils.mm b/ui/events/test/cocoa_test_event_utils.mm |
index 4f0cb67de0deaf7c190a7427875ab99785003e6b..2694b84e1d552ef1dd5575a881a08dc11933c303 100644 |
--- a/ui/events/test/cocoa_test_event_utils.mm |
+++ b/ui/events/test/cocoa_test_event_utils.mm |
@@ -6,22 +6,6 @@ |
#include "ui/events/test/cocoa_test_event_utils.h" |
-ScopedClassSwizzler::ScopedClassSwizzler(Class target, Class source, |
- SEL selector) { |
- old_selector_impl_ = class_getInstanceMethod(target, selector); |
- new_selector_impl_ = class_getInstanceMethod(source, selector); |
- if (!old_selector_impl_ && !new_selector_impl_) { |
- // Try class methods. |
- old_selector_impl_ = class_getClassMethod(target, selector); |
- new_selector_impl_ = class_getClassMethod(source, selector); |
- } |
- method_exchangeImplementations(old_selector_impl_, new_selector_impl_); |
-} |
- |
-ScopedClassSwizzler::~ScopedClassSwizzler() { |
- method_exchangeImplementations(old_selector_impl_, new_selector_impl_); |
-} |
- |
namespace cocoa_test_event_utils { |
NSEvent* MouseEventAtPoint(NSPoint point, NSEventType type, |