summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 13:09:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-24 22:16:24 +0200
commit7e4a3eee79b49216696f8c51bf833eee3e06a803 (patch)
tree9a6ceee7e11d2ceeb402303e4cf696c86defd05a /sc
parentefa19c9a5004699d844d108e2bf0dce845d48959 (diff)
loplugin:unusedmethods
Change-Id: Ib724da1f07be9e8f4d0d505f7f2886990cab661f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97022 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/IwyuFilter_sc.yaml1
-rw-r--r--sc/Library_sc.mk1
-rw-r--r--sc/inc/AccessibleGlobal.hxx57
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx42
-rw-r--r--sc/source/filter/xml/xmlimprt.hxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleGlobal.cxx68
-rw-r--r--sc/source/ui/inc/checklistmenu.hxx1
7 files changed, 0 insertions, 172 deletions
diff --git a/sc/IwyuFilter_sc.yaml b/sc/IwyuFilter_sc.yaml
index ee2301087b23..db479f4d6704 100644
--- a/sc/IwyuFilter_sc.yaml
+++ b/sc/IwyuFilter_sc.yaml
@@ -1,7 +1,6 @@
---
assumeFilename: sc/source/core/data/document.cxx
blacklist:
- sc/inc/AccessibleGlobal.hxx:
# base class has to be a complete type
- com/sun/star/accessibility/XAccessibleStateSet.hpp
sc/inc/addruno.hxx:
diff --git a/sc/Library_sc.mk b/sc/Library_sc.mk
index ff649cf6a9a9..1b3cead83beb 100644
--- a/sc/Library_sc.mk
+++ b/sc/Library_sc.mk
@@ -362,7 +362,6 @@ $(eval $(call gb_Library_add_exception_objects,sc,\
sc/source/ui/Accessibility/AccessibleDocumentBase \
sc/source/ui/Accessibility/AccessibleDocumentPagePreview \
sc/source/ui/Accessibility/AccessibleEditObject \
- sc/source/ui/Accessibility/AccessibleGlobal \
sc/source/ui/Accessibility/AccessiblePageHeader \
sc/source/ui/Accessibility/AccessiblePageHeaderArea \
sc/source/ui/Accessibility/AccessiblePreviewCell \
diff --git a/sc/inc/AccessibleGlobal.hxx b/sc/inc/AccessibleGlobal.hxx
deleted file mode 100644
index df699e462937..000000000000
--- a/sc/inc/AccessibleGlobal.hxx
+++ /dev/null
@@ -1,57 +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_SC_INC_ACCESSIBLEGLOBAL_HXX
-#define INCLUDED_SC_INC_ACCESSIBLEGLOBAL_HXX
-
-#include <com/sun/star/accessibility/XAccessibleStateSet.hpp>
-#include <cppuhelper/implbase.hxx>
-
-#include <set>
-
-/// Generic XAccessibleStateSet implementation.
-class ScAccessibleStateSet final : public ::cppu::WeakImplHelper< css::accessibility::XAccessibleStateSet >
-{
-public:
- ScAccessibleStateSet();
- virtual ~ScAccessibleStateSet() override;
-
- // XAccessibleStateSet
-
- virtual sal_Bool SAL_CALL isEmpty() override;
-
- virtual sal_Bool SAL_CALL contains(sal_Int16 nState) override;
-
- virtual sal_Bool SAL_CALL containsAll(
- const css::uno::Sequence<sal_Int16>& aStateSet) override;
-
- virtual css::uno::Sequence<sal_Int16> SAL_CALL getStates() override;
-
- // Non-UNO Methods
-
- void insert(sal_Int16 nState);
- void clear();
-
-private:
- ::std::set<sal_Int16> maStates;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 84931b6de44f..42a332311081 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -1304,48 +1304,6 @@ void ScXMLImport::SetStyleToRanges()
OSL_ENSURE(xSheetCellRanges.is(), "didn't get SheetCellRanges");
}
-void ScXMLImport::SetStyleToRange(const ScRange& rRange, const OUString* pStyleName,
- const sal_Int16 nCellType, const OUString* pCurrency)
-{
- if (!mbImportStyles)
- return;
-
- if (sPrevStyleName.isEmpty())
- {
- nPrevCellType = nCellType;
- if (pStyleName)
- sPrevStyleName = *pStyleName;
- if (pCurrency)
- sPrevCurrency = *pCurrency;
- else if (!sPrevCurrency.isEmpty())
- sPrevCurrency.clear();
- }
- else if ((nCellType != nPrevCellType) ||
- ((pStyleName && *pStyleName != sPrevStyleName) ||
- (!pStyleName && !sPrevStyleName.isEmpty())) ||
- ((pCurrency && *pCurrency != sPrevCurrency) ||
- (!pCurrency && !sPrevCurrency.isEmpty())))
- {
- SetStyleToRanges();
- nPrevCellType = nCellType;
- if (pStyleName)
- sPrevStyleName = *pStyleName;
- else if(!sPrevStyleName.isEmpty())
- sPrevStyleName.clear();
- if (pCurrency)
- sPrevCurrency = *pCurrency;
- else if(!sPrevCurrency.isEmpty())
- sPrevCurrency.clear();
- }
- table::CellRangeAddress aCellRange;
- aCellRange.StartColumn = rRange.aStart.Col();
- aCellRange.StartRow = rRange.aStart.Row();
- aCellRange.Sheet = rRange.aStart.Tab();
- aCellRange.EndColumn = rRange.aEnd.Col();
- aCellRange.EndRow = rRange.aEnd.Row();
- AddStyleRange(aCellRange);
-}
-
void ScXMLImport::SetStyleToRanges(const ScRangeList& rRanges, const OUString* pStyleName,
const sal_Int16 nCellType, const OUString* pCurrency)
{
diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx
index 0523d437cfd6..bf180693797e 100644
--- a/sc/source/filter/xml/xmlimprt.hxx
+++ b/sc/source/filter/xml/xmlimprt.hxx
@@ -369,8 +369,6 @@ private:
void ExamineDefaultStyle();
public:
- void SetStyleToRange(const ScRange& rRange, const OUString* pStyleName,
- const sal_Int16 nCellType, const OUString* pCurrency);
void SetStyleToRanges(const ScRangeList& rRanges, const OUString* pStyleName,
const sal_Int16 nCellType, const OUString* pCurrency);
bool SetNullDateOnUnitConverter();
diff --git a/sc/source/ui/Accessibility/AccessibleGlobal.cxx b/sc/source/ui/Accessibility/AccessibleGlobal.cxx
deleted file mode 100644
index bb6e80931f68..000000000000
--- a/sc/source/ui/Accessibility/AccessibleGlobal.cxx
+++ /dev/null
@@ -1,68 +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 .
- */
-
-#include <AccessibleGlobal.hxx>
-
-#include <comphelper/sequence.hxx>
-
-using ::com::sun::star::uno::Sequence;
-
-ScAccessibleStateSet::ScAccessibleStateSet()
-{
-}
-
-ScAccessibleStateSet::~ScAccessibleStateSet()
-{
-}
-
-// XAccessibleStateSet
-
-sal_Bool SAL_CALL ScAccessibleStateSet::isEmpty()
-{
- return maStates.empty();
-}
-
-sal_Bool SAL_CALL ScAccessibleStateSet::contains(sal_Int16 nState)
-{
- return maStates.count(nState) != 0;
-}
-
-sal_Bool SAL_CALL ScAccessibleStateSet::containsAll(
- const Sequence<sal_Int16>& aStateSet)
-{
- return std::all_of(aStateSet.begin(), aStateSet.end(),
- [this](const sal_Int16 nState) { return maStates.count(nState) != 0; });
-}
-
-Sequence<sal_Int16> SAL_CALL ScAccessibleStateSet::getStates()
-{
- return comphelper::containerToSequence(maStates);
-}
-
-void ScAccessibleStateSet::insert(sal_Int16 nState)
-{
- maStates.insert(nState);
-}
-
-void ScAccessibleStateSet::clear()
-{
- maStates.clear();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/inc/checklistmenu.hxx b/sc/source/ui/inc/checklistmenu.hxx
index 6eb474cf20b4..895edc810c22 100644
--- a/sc/source/ui/inc/checklistmenu.hxx
+++ b/sc/source/ui/inc/checklistmenu.hxx
@@ -184,7 +184,6 @@ private:
BTN_CANCEL, // Cancel button
EDIT_SEARCH, // Search box
};
- void getSectionPosSize(Point& rPos, Size& rSize, SectionType eType) const;
/**
* Calculate the appropriate window size, the position and size of each