From 185b183a71924c84edb385ec5eb4fe6d4bfe8e05 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Mon, 20 Sep 2021 08:40:05 +0100 Subject: wina11y: Drop AccObject::m_bShouldDestroy The getter, 'AccObject::ifShouldDestroy', was unused, so drop it. The only place where the 'm_bShouldDestroy' member was actually used was in 'AccObject::NotifyDestroy', where it was assigned a value from a method param that was then passed further right away, so there's no need to store the value at all. Change-Id: Id5688e9742892e345b143a8eebeed5099696a0f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122342 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- winaccessibility/source/service/AccObject.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'winaccessibility/source') diff --git a/winaccessibility/source/service/AccObject.cxx b/winaccessibility/source/service/AccObject.cxx index 9e3f7d063b3b..7d1adb27afd4 100644 --- a/winaccessibility/source/service/AccObject.cxx +++ b/winaccessibility/source/service/AccObject.cxx @@ -162,7 +162,6 @@ AccObject::AccObject(XAccessible* pAcc, AccObjectManagerAgent* pAgent, AccEventListener* pListener) : m_resID (NULL), m_pParantID (nullptr), - m_bShouldDestroy(false), m_pIMAcc (nullptr), m_pParentObj(nullptr), m_pListener (pListener), @@ -1117,11 +1116,10 @@ void AccObject::GetExpandedState( sal_Bool* isExpandable, sal_Bool* isExpanded) } } -void AccObject::NotifyDestroy(bool ifDelete) +void AccObject::NotifyDestroy(bool bDestroy) { - m_bShouldDestroy=ifDelete; if(m_pIMAcc) - m_pIMAcc->NotifyDestroy(m_bShouldDestroy); + m_pIMAcc->NotifyDestroy(bDestroy); } void AccObject::SetParentObj(AccObject* pParentAccObj) @@ -1187,9 +1185,5 @@ AccObject* AccObject::GetParentObj() { return m_pParentObj; } -bool AccObject::ifShouldDestroy() -{ - return m_bShouldDestroy; -} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit