From 78bed16e17f5128d3523413255d95de85c0ebf36 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 May 2018 14:02:33 +0100 Subject: drop last use of TransferableHelper::GetSystemClipboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I405b0cac0db5f08aa2f9fb73927c4c21f0250988 Reviewed-on: https://gerrit.libreoffice.org/55076 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svtools/source/misc/transfer.cxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 7f6d83dee5a7..49d08ef3d979 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -991,7 +991,6 @@ void TransferableHelper::StartDrag( vcl::Window* pWindow, sal_Int8 nDnDSourceAct } } - void TransferableHelper::ClearSelection( vcl::Window *pWindow ) { DBG_ASSERT( pWindow, "Window pointer is NULL" ); @@ -1001,17 +1000,6 @@ void TransferableHelper::ClearSelection( vcl::Window *pWindow ) xSelection->setContents( nullptr, nullptr ); } - -Reference< XClipboard> TransferableHelper::GetSystemClipboard() -{ - vcl::Window *pFocusWindow = Application::GetFocusWindow(); - - if( pFocusWindow ) - return pFocusWindow->GetClipboard(); - - return Reference< XClipboard > (); -} - namespace { class theTransferableHelperUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theTransferableHelperUnoTunnelId > {}; @@ -1022,7 +1010,6 @@ const Sequence< sal_Int8 >& TransferableHelper::getUnoTunnelId() return theTransferableHelperUnoTunnelId::get().getSeq(); } - class TransferableClipboardNotifier : public ::cppu::WeakImplHelper< XClipboardListener > { private: -- cgit