summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-14 08:54:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-14 13:21:49 +0100
commit1b61d0417bf46896ef1f1bd1e1a8209588fc157a (patch)
tree6c603d40a0a1e2c1c4a9e7dd8495ed528586b16b /cppcanvas
parentf95afd856d087b5475d67d104a4aa7d85cf32413 (diff)
loplugin:unusedmethods
Change-Id: I7c780be3e2740fd9b03c39ebe16935d61caf4f7e Reviewed-on: https://gerrit.libreoffice.org/51257 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/Library_cppcanvas.mk1
-rw-r--r--cppcanvas/source/inc/canvasgraphichelper.hxx1
-rw-r--r--cppcanvas/source/wrapper/implcanvas.cxx1
-rw-r--r--cppcanvas/source/wrapper/implfont.cxx62
-rw-r--r--cppcanvas/source/wrapper/implfont.hxx58
5 files changed, 0 insertions, 123 deletions
diff --git a/cppcanvas/Library_cppcanvas.mk b/cppcanvas/Library_cppcanvas.mk
index d60c75606fb3..f0b72ca4ce15 100644
--- a/cppcanvas/Library_cppcanvas.mk
+++ b/cppcanvas/Library_cppcanvas.mk
@@ -72,7 +72,6 @@ $(eval $(call gb_Library_add_exception_objects,cppcanvas,\
cppcanvas/source/wrapper/implbitmapcanvas \
cppcanvas/source/wrapper/implcanvas \
cppcanvas/source/wrapper/implcustomsprite \
- cppcanvas/source/wrapper/implfont \
cppcanvas/source/wrapper/implpolypolygon \
cppcanvas/source/wrapper/implsprite \
cppcanvas/source/wrapper/implspritecanvas \
diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx
index 6a091d78895a..96daa1a74b9f 100644
--- a/cppcanvas/source/inc/canvasgraphichelper.hxx
+++ b/cppcanvas/source/inc/canvasgraphichelper.hxx
@@ -56,7 +56,6 @@ namespace cppcanvas
// for our clients
// ===============
const CanvasSharedPtr& getCanvas() const { return mpCanvas; }
- const css::uno::Reference< css::rendering::XGraphicDevice >& getGraphicDevice() const { return mxGraphicDevice; }
const css::rendering::RenderState& getRenderState() const;
private:
diff --git a/cppcanvas/source/wrapper/implcanvas.cxx b/cppcanvas/source/wrapper/implcanvas.cxx
index 68a4cb28750c..d5adeb5a0257 100644
--- a/cppcanvas/source/wrapper/implcanvas.cxx
+++ b/cppcanvas/source/wrapper/implcanvas.cxx
@@ -28,7 +28,6 @@
#include <canvas/canvastools.hxx>
#include <cppcanvas/polypolygon.hxx>
-#include "implfont.hxx"
#include "implcanvas.hxx"
diff --git a/cppcanvas/source/wrapper/implfont.cxx b/cppcanvas/source/wrapper/implfont.cxx
deleted file mode 100644
index 9cb52095129a..000000000000
--- a/cppcanvas/source/wrapper/implfont.cxx
+++ /dev/null
@@ -1,62 +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 "implfont.hxx"
-#include <canvas/canvastools.hxx>
-
-
-using namespace ::com::sun::star;
-
-/* Definition of Font class */
-
-namespace cppcanvas
-{
- namespace internal
- {
-
- ImplFont::ImplFont( const uno::Reference< rendering::XCanvas >& rCanvas,
- const OUString& rFontName,
- const double& rCellSize ) :
- mxCanvas( rCanvas ),
- mxFont( nullptr )
- {
- OSL_ENSURE( mxCanvas.is(), "ImplFont::ImplFont(): Invalid Canvas" );
-
- rendering::FontRequest aFontRequest;
- aFontRequest.FontDescription.FamilyName = rFontName;
- aFontRequest.CellSize = rCellSize;
-
- geometry::Matrix2D aFontMatrix;
- ::canvas::tools::setIdentityMatrix2D( aFontMatrix );
-
- mxFont = mxCanvas->createFont( aFontRequest,
- uno::Sequence< beans::PropertyValue >(),
- aFontMatrix );
- }
-
-
- ImplFont::~ImplFont()
- {
- }
-
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/cppcanvas/source/wrapper/implfont.hxx b/cppcanvas/source/wrapper/implfont.hxx
deleted file mode 100644
index fb4ccca64077..000000000000
--- a/cppcanvas/source/wrapper/implfont.hxx
+++ /dev/null
@@ -1,58 +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_CPPCANVAS_SOURCE_WRAPPER_IMPLFONT_HXX
-#define INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLFONT_HXX
-
-#include <com/sun/star/uno/Reference.hxx>
-#include <com/sun/star/rendering/XCanvas.hpp>
-#include <cppcanvas/font.hxx>
-
-namespace com { namespace sun { namespace star { namespace rendering
-{
- class XCanvasFont;
-} } } }
-
-/* Definition of Font class */
-
-namespace cppcanvas
-{
-
- namespace internal
- {
-
- class ImplFont : public Font
- {
- public:
- ImplFont( const css::uno::Reference< css::rendering::XCanvas >& rCanvas,
- const OUString& rFontName,
- const double& rCellSize );
-
- virtual ~ImplFont() override;
-
- private:
- css::uno::Reference< css::rendering::XCanvas > mxCanvas;
- css::uno::Reference< css::rendering::XCanvasFont > mxFont;
- };
- }
-}
-
-#endif // INCLUDED_CPPCANVAS_SOURCE_WRAPPER_IMPLFONT_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */