From 1b61d0417bf46896ef1f1bd1e1a8209588fc157a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Mar 2018 08:54:55 +0200 Subject: loplugin:unusedmethods Change-Id: I7c780be3e2740fd9b03c39ebe16935d61caf4f7e Reviewed-on: https://gerrit.libreoffice.org/51257 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppcanvas/source/inc/canvasgraphichelper.hxx | 1 - cppcanvas/source/wrapper/implcanvas.cxx | 1 - cppcanvas/source/wrapper/implfont.cxx | 62 ---------------------------- cppcanvas/source/wrapper/implfont.hxx | 58 -------------------------- 4 files changed, 122 deletions(-) delete mode 100644 cppcanvas/source/wrapper/implfont.cxx delete mode 100644 cppcanvas/source/wrapper/implfont.hxx (limited to 'cppcanvas/source') 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 #include -#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 - - -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 -#include -#include - -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: */ -- cgit v1.2.3