winaccessibility/inc/AccObject.hxx                      |    1 -
 winaccessibility/inc/AccObjectWinManager.hxx            |    2 --
 winaccessibility/source/service/AccObject.cxx           |   12 ------------
 winaccessibility/source/service/AccObjectWinManager.cxx |   13 -------------
 4 files changed, 28 deletions(-)

New commits:
commit fd787538797a182786ab7b1dfc041562b2e5073a
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Jan 5 14:18:15 2022 +0000
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Jan 6 10:10:38 2022 +0100

    wina11y: Drop now unused AccObject::SetRole
    
    Change-Id: I04db43ac49d7bc6ff42157cdd0c94087c454c981
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128009
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/winaccessibility/inc/AccObject.hxx 
b/winaccessibility/inc/AccObject.hxx
index 6da9d6621c5e..a255f36268fa 100644
--- a/winaccessibility/inc/AccObject.hxx
+++ b/winaccessibility/inc/AccObject.hxx
@@ -114,7 +114,6 @@ public:
 
     void  SetName( css::uno::Any newName);
     void  SetValue( css::uno::Any pAny );
-    void  SetRole( short Role );
 
     short GetRole() const;
 
diff --git a/winaccessibility/source/service/AccObject.cxx 
b/winaccessibility/source/service/AccObject.cxx
index 781c58c82e71..cbda17fa3e77 100644
--- a/winaccessibility/source/service/AccObject.cxx
+++ b/winaccessibility/source/service/AccObject.cxx
@@ -485,18 +485,6 @@ void  AccObject::SetName( Any pAny)
 
 }
 
-/**
-   * Set role property via pAny
-   * @param Role New accessible role.
-   * @return
-   */
-void  AccObject::SetRole( short Role )
-{
-    if( nullptr == m_pIMAcc )
-        return ;
-    m_pIMAcc->Put_XAccRole( Role );
-}
-
 /**
 * Get role property via pAny
 * @param
commit e60406b0873d9e73e84682248f234fca600a1a34
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Wed Jan 5 14:14:18 2022 +0000
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Jan 6 10:10:25 2022 +0100

    wina11y: Drop unused AccObjectWinManager::SetRole
    
    Change-Id: Ic2d470a137e4d0c907f28e24c58ba19a937a8b4b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128008
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/winaccessibility/inc/AccObjectWinManager.hxx 
b/winaccessibility/inc/AccObjectWinManager.hxx
index 911c83ea2a8f..813c1d8541fa 100644
--- a/winaccessibility/inc/AccObjectWinManager.hxx
+++ b/winaccessibility/inc/AccObjectWinManager.hxx
@@ -122,8 +122,6 @@ public:
     void  SetAccName( css::accessibility::XAccessible* pXAcc, css::uno::Any 
newName);
     void  UpdateAccName( css::accessibility::XAccessible* pXAcc );
 
-    void  SetRole( css::accessibility::XAccessible* pXAcc, long Role );
-
     void  UpdateAccFocus( css::accessibility::XAccessible* newFocus );
     void  UpdateAction( css::accessibility::XAccessible* pXAcc );
 
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx 
b/winaccessibility/source/service/AccObjectWinManager.cxx
index 69d8af6ee65a..341d108e1bff 100644
--- a/winaccessibility/source/service/AccObjectWinManager.cxx
+++ b/winaccessibility/source/service/AccObjectWinManager.cxx
@@ -977,19 +977,6 @@ void  AccObjectWinManager::SetAccName( XAccessible* pXAcc, 
Any newName)
         pAccObj->SetName( newName );
 }
 
-/**
-   * Set corresponding com object's role via XAccessible interface and new 
role.
-   * @param pXAcc XAccessible interface.
-   * @param Role new role
-   * @return
-   */
-void  AccObjectWinManager::SetRole( XAccessible* pXAcc, long Role )
-{
-    AccObject* pAccObj = GetAccObjByXAcc( pXAcc );
-    if( pAccObj )
-        pAccObj->SetRole( static_cast<short>(Role) );
-}
-
 /**
    * Judge if a XAccessible object is a container object.
    * @param pAccessible XAccessible interface.

Reply via email to