summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-19 13:35:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-20 12:55:07 +0200
commit8270eb5d5600cc84dbf5f0e339f90c4519ef88bb (patch)
tree6253324edd37e5b13c17436a6378ee58ba6a723b /basegfx
parent4f3dd930324552aec40b333d750ec7b95ff03c26 (diff)
loplugin:unusedmethods
Change-Id: Ief95f111350808f010539bb733a553007d30a9df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152006 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/test/B2DPolyPolygonTest.cxx1
-rw-r--r--basegfx/test/boxclipper.cxx9
-rw-r--r--basegfx/test/boxclipper.hxx31
3 files changed, 0 insertions, 41 deletions
diff --git a/basegfx/test/B2DPolyPolygonTest.cxx b/basegfx/test/B2DPolyPolygonTest.cxx
index f51d396b8578..5319e6b46967 100644
--- a/basegfx/test/B2DPolyPolygonTest.cxx
+++ b/basegfx/test/B2DPolyPolygonTest.cxx
@@ -24,7 +24,6 @@
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dtrapezoid.hxx>
-#include "boxclipper.hxx"
#include <random>
namespace basegfx
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index b65f25bae425..d58806cb739e 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -31,19 +31,10 @@
#include <comphelper/random.hxx>
#include <rtl/math.hxx>
-#include "boxclipper.hxx"
-
using namespace ::basegfx;
namespace basegfx2d
{
-/// Gets a random ordinal [0,n)
-double getRandomOrdinal( const std::size_t n )
-{
- // use this one when displaying polygons in OOo, which still sucks
- // great rocks when trying to import non-integer svg:d attributes
- return comphelper::rng::uniform_size_distribution(0, n-1);
-}
static bool compare(const B2DPoint& left, const B2DPoint& right)
{
diff --git a/basegfx/test/boxclipper.hxx b/basegfx/test/boxclipper.hxx
deleted file mode 100644
index 03aad0d2ba74..000000000000
--- a/basegfx/test/boxclipper.hxx
+++ /dev/null
@@ -1,31 +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 .
- */
-
-#pragma once
-
-#include <sal/config.h>
-
-#include <cstddef>
-
-namespace basegfx2d
-{
-double getRandomOrdinal(const std::size_t n);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */