summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-01 14:49:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-02 09:36:19 +0200
commit8ce0c756e64242431361059566d41495e3550d99 (patch)
tree407cd3de4964d3f5049bf418bfdbda0e63ca3daa /vcl/source
parenteac937de4267637d22d4c418a87e675c780e59a3 (diff)
AlwaysDisableInput newly unused
Change-Id: I0cdb7b74487f2338d16eca85616f840d921dad5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101874 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/window.cxx29
1 files changed, 1 insertions, 28 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f581ce0850b4..a9fe21d0a7a3 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -645,7 +645,7 @@ WindowImpl::WindowImpl( WindowType nType )
mnParentClipMode = ParentClipMode::NONE; // Flags for Parent-ClipChildren-Mode
mnActivateMode = ActivateModeFlags::NONE; // Will be converted in System/Overlap-Windows
mnDlgCtrlFlags = DialogControlFlags::NONE; // DialogControl-Flags
- meAlwaysInputMode = AlwaysInputNone; // neither AlwaysEnableInput nor AlwaysDisableInput called
+ meAlwaysInputMode = AlwaysInputNone; // AlwaysEnableInput not called
meHalign = VclAlign::Fill;
meValign = VclAlign::Fill;
mePackType = VclPackType::Start;
@@ -2634,33 +2634,6 @@ void Window::AlwaysEnableInput( bool bAlways, bool bChild )
}
}
-void Window::AlwaysDisableInput( bool bAlways, bool bChild )
-{
-
- if ( mpWindowImpl->mpBorderWindow )
- mpWindowImpl->mpBorderWindow->AlwaysDisableInput( bAlways, false );
-
- if( bAlways && mpWindowImpl->meAlwaysInputMode != AlwaysInputDisabled )
- {
- mpWindowImpl->meAlwaysInputMode = AlwaysInputDisabled;
- EnableInput(false, false);
- }
- else if( ! bAlways && mpWindowImpl->meAlwaysInputMode == AlwaysInputDisabled )
- {
- mpWindowImpl->meAlwaysInputMode = AlwaysInputNone;
- }
-
- if ( bChild )
- {
- VclPtr< vcl::Window > pChild = mpWindowImpl->mpFirstChild;
- while ( pChild )
- {
- pChild->AlwaysDisableInput( bAlways, bChild );
- pChild = pChild->mpWindowImpl->mpNext;
- }
- }
-}
-
void Window::SetActivateMode( ActivateModeFlags nMode )
{