sw/source/uibase/docvw/edtwin.cxx |    9 ---------
 1 file changed, 9 deletions(-)

New commits:
commit 1d80f90afb479227044bdf0876c5576007abfdce
Author:     Miklos Vajna <[email protected]>
AuthorDate: Wed Nov 17 20:06:53 2021 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Thu Nov 18 08:09:54 2021 +0100

    sw: remove useless debug code in SwEditWin
    
    The IsCursorInProtectedArea user pref flag can already toggle this, so
    this is not needed.
    
    Change-Id: I67fef0ee208f916e3af98a4215287d5c79908434
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125427
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/sw/source/uibase/docvw/edtwin.cxx 
b/sw/source/uibase/docvw/edtwin.cxx
index b38b0a521326..52022b1a465a 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1627,15 +1627,6 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt)
         case SwKeyState::CheckKey:
             eKeyState = SwKeyState::KeyToView;       // default forward to View
 
-#if OSL_DEBUG_LEVEL > 1
-//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-            // for switching cursor behaviour in ReadOnly regions
-            if( 0x7210 == rKeyCode.GetFullCode() )
-                rSh.SetReadOnlyAvailable( !rSh.IsReadOnlyAvailable() );
-            else
-//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-#endif
-
             if (!comphelper::LibreOfficeKit::isActive() &&
                 !rKeyCode.IsMod2() && '=' == aCh &&
                 !rSh.IsTableMode() && rSh.GetTableFormat() &&

Reply via email to