diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.cxx b/winaccessibility/source/UAccCOM/AccComponentBase.cxx index 91a9219b3ef0..27f8354d43de 100644 --- a/winaccessibility/source/UAccCOM/AccComponentBase.cxx +++ b/winaccessibility/source/UAccCOM/AccComponentBase.cxx @@ -62,35 +62,6 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long* } } -/** - * Grabs the focus to this object. - * - * @param success the boolean result to be returned. - */ -COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean* success) -{ - SolarMutexGuard g; - - try - { - if (success == nullptr) - return E_INVALIDARG; - - if (!pRXComp.is()) - { - return E_FAIL; - } - GetXInterface()->grabFocus(); - *success = TRUE; - - return S_OK; - } - catch (...) - { - return E_FAIL; - } -} - /** * Returns the foreground color of this object. * diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.h b/winaccessibility/source/UAccCOM/AccComponentBase.h index 01649a11aeb8..89c50c46c63f 100644 --- a/winaccessibility/source/UAccCOM/AccComponentBase.h +++ b/winaccessibility/source/UAccCOM/AccComponentBase.h @@ -38,9 +38,6 @@ public: // box relative to the parent. STDMETHOD(get_locationInParent)(long* x, long* y); - // Grabs the focus to this object. - STDMETHOD(grabFocus)(boolean* success); - // Returns the foreground color of this object. STDMETHOD(get_foreground)(IA2Color* foreground);