diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2022-08-05 11:02:40 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2022-08-05 16:36:17 +0200 |
commit | 0c3a159807965fa7db548a943a8d67d8bad5b208 (patch) | |
tree | b54e25a92b79a0b344cde5dd57d5a91d6ee93a61 /winaccessibility/source/service/AccObjectWinManager.cxx | |
parent | a9c8ac0605fd1d19e1d79b54804b610a64a8a056 (diff) |
wina11y: Drop AccObjectManagerAgent::UpdateLocation
That static method doesn't do anything.
`_IMPL_WIN` is not defined, so the
#ifdef _IMPL_WIN
if( pWinManager )
pWinManager->SetLocation( pXAcc, top, left, width, height );
#endif
in the method is unused.
Since `CMAccessible::accLocation` already retrieves the
current location from the underlying `XAccessible` on demand,
I don't see a need to update the location manually
in the first place, so there should be no need to enable that,
code, just drop it.
Also drop `AccObjectWinManager::SetLocation` which was
unused since `AccObjectManagerAgent::UpdateLocation`
(s. above) would have been the only call site.
Change-Id: I04d0230d3599466aaa92082caba54da22a3b1a28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137857
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility/source/service/AccObjectWinManager.cxx')
-rw-r--r-- | winaccessibility/source/service/AccObjectWinManager.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx index 3a8b1eb06d8a..8349d5c863cd 100644 --- a/winaccessibility/source/service/AccObjectWinManager.cxx +++ b/winaccessibility/source/service/AccObjectWinManager.cxx @@ -919,21 +919,6 @@ void AccObjectWinManager::UpdateAction( XAccessible* pXAcc ) } /** - * Set corresponding com object's accessible location via XAccessible interface and new - * location. - * @param pXAcc XAccessible interface. - * @return - */ -void AccObjectWinManager::SetLocation( XAccessible* pXAcc, long /*top*/, long /*left*/, long /*width*/, long /*height*/ ) -{ - AccObject* pObj = GetAccObjByXAcc( pXAcc ); - //get the location from XComponent. - Reference< XAccessibleContext > pRContext = pXAcc->getAccessibleContext(); - if( pObj ) - pObj->UpdateLocation(); -} - -/** * Set corresponding com object's value via XAccessible interface and new value. * @param pXAcc XAccessible interface. * @param pAny new value. |