Commits

Anonymous committed b3ab4e0

vcl122: #i117746# remove unused Application::IsAccessibilityEnabled, Application::IsUserActive

Comments (0)

Files changed (2)

vcl/inc/vcl/svapp.hxx

     static sal_Bool                 AnyInput( sal_uInt16 nType = INPUT_ANY );
     static sal_uLong                GetLastInputInterval();
     static sal_Bool                 IsUICaptured();
-    static sal_Bool                 IsUserActive( sal_uInt16 nTest = USERACTIVE_ALL );
 
     virtual void                SystemSettingsChanging( AllSettings& rSettings,
                                                         Window* pFrame );
     static void                 SetFilterHdl( const Link& rLink );
     static const Link&          GetFilterHdl();
     
-    static sal_Bool                 IsAccessibilityEnabled();
-
     static void                 EnableHeadlessMode( sal_Bool bEnable = sal_True );
     static sal_Bool                 IsHeadlessModeEnabled();
     

vcl/source/app/svapp.cxx

 
 // -----------------------------------------------------------------------
 
-sal_Bool Application::IsUserActive( sal_uInt16 nTest )
-{
-    if ( nTest & (USERACTIVE_MOUSEDRAG | USERACTIVE_INPUT) )
-    {
-        if ( IsUICaptured() )
-            return sal_True;
-    }
-
-    if ( nTest & USERACTIVE_INPUT )
-    {
-        if ( GetLastInputInterval() < 500 )
-            return sal_True;
-
-        if ( AnyInput( INPUT_KEYBOARD ) )
-            return sal_True;
-    }
-
-    if ( nTest & USERACTIVE_MODALDIALOG )
-    {
-        if ( ImplGetSVData()->maAppData.mnModalDialog )
-            return sal_True;
-    }
-
-    return sal_False;
-}
-
-// -----------------------------------------------------------------------
-
 void Application::SystemSettingsChanging( AllSettings& /*rSettings*/,
                                           Window* /*pFrame*/ )
 {
     pSVData->mpDefInst->AddToRecentDocumentList(rFileUrl, rMimeType);
 }
 
-sal_Bool Application::IsAccessibilityEnabled()
-{
-    return sal_False;
-}
-
 sal_Bool InitAccessBridge( sal_Bool bShowCancel, sal_Bool &rCancelled )
 {
     sal_Bool bRet = true;