summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-15 20:11:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-16 09:21:42 +0200
commitb13eb902dfa3ed3f540e257b6865997ff23d560b (patch)
tree1443c191228ab3f701dd059215ce72844eccca21 /sfx2
parent27a97ce6f9df24582e07c9f5f920c79ab0851abd (diff)
loplugin:unusedmethods
Change-Id: I52187eccf6170f64d38c673a86dc80818813efa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94328 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx26
-rw-r--r--sfx2/source/appl/newhelp.hxx1
-rw-r--r--sfx2/source/appl/panelist.hxx45
3 files changed, 0 insertions, 72 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index e48522f87808..9160c231f7e3 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -22,7 +22,6 @@
#include <sfx2/sfxresid.hxx>
#include "helpinterceptor.hxx"
#include <helper.hxx>
-#include "panelist.hxx"
#include <srchdlg.hxx>
#include <sfx2/sfxhelp.hxx>
#include <sal/log.hxx>
@@ -136,25 +135,6 @@ namespace sfx2
{
- void HandleTaskPaneList( vcl::Window* pWindow, bool bAddToList )
- {
- vcl::Window* pParent = pWindow->GetParent();
- DBG_ASSERT( pParent, "HandleTaskPaneList(): every window here should have a parent" );
-
- SystemWindow* pSysWin = pParent->GetSystemWindow();
- if( pSysWin )
- {
- TaskPaneList* pTaskPaneList = pSysWin->GetTaskPaneList();
- if( pTaskPaneList )
- {
- if( bAddToList )
- pTaskPaneList->AddWindow( pWindow );
- else
- pTaskPaneList->RemoveWindow( pWindow );
- }
- }
- }
-
/** Prepare a search string for searching or selecting.
For searching every search word needs the postfix '*' and the delimiter ' ' if necessary.
For selecting the delimiter '|' is required to search with regular expressions.
@@ -1433,12 +1413,6 @@ HelpTabPage_Impl* SfxHelpIndexWindow_Impl::GetPage(const OString& rName)
return pPage;
}
-HelpTabPage_Impl* SfxHelpIndexWindow_Impl::GetCurrentPage()
-{
- OString sName(m_xTabCtrl->get_current_page_ident());
- return GetPage(sName);
-}
-
IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, SelectHdl, weld::ComboBox&, void)
{
aIdle.Start();
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 83b356eee551..6a78b857081e 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -250,7 +250,6 @@ private:
void Initialize();
void SetActiveFactory();
HelpTabPage_Impl* GetPage(const OString&);
- HelpTabPage_Impl* GetCurrentPage();
inline ContentTabPage_Impl* GetContentPage();
inline IndexTabPage_Impl* GetIndexPage();
diff --git a/sfx2/source/appl/panelist.hxx b/sfx2/source/appl/panelist.hxx
deleted file mode 100644
index 0761c2532fc7..000000000000
--- a/sfx2/source/appl/panelist.hxx
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_SFX2_SOURCE_APPL_PANELIST_HXX
-#define INCLUDED_SFX2_SOURCE_APPL_PANELIST_HXX
-
-#include <vcl/keycod.hxx>
-
-namespace sfx2
-{
- // source in newhelp.cxx
-
- void HandleTaskPaneList( vcl::Window* pWindow, bool bAddToList );
- // pWindow: just a system window or something which is child of a system window
-
- inline void AddToTaskPaneList( vcl::Window* pWindowToBeHandled )
- {
- HandleTaskPaneList( pWindowToBeHandled, true );
- }
-
- inline void RemoveFromTaskPaneList( vcl::Window* pWindowToBeHandled )
- {
- HandleTaskPaneList( pWindowToBeHandled, false );
- }
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */