diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-02-02 12:51:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-02 19:38:58 +0100 |
commit | 14b6fae258fe74c5cccf1e6d63ff32ae698d0f6c (patch) | |
tree | bf9f9333c263b57f30d7c75e59c298f41f40f219 /include/unotest | |
parent | ff546a5dd35d6a31f01c70a9b995afc1f7b7389e (diff) |
remove some unused headers
found with a little python script(include) and some grepping, so probably
not 100% reliable.
Change-Id: I1a26a37ef7297c2cc07ed5fd2e0af45280e64c13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87824
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotest')
-rw-r--r-- | include/unotest/assertion_traits.hxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/unotest/assertion_traits.hxx b/include/unotest/assertion_traits.hxx deleted file mode 100644 index da6d8d87d0ee..000000000000 --- a/include/unotest/assertion_traits.hxx +++ /dev/null @@ -1,42 +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/. - */ - -#ifndef INCLUDED_UNOTEST_ASSERTION_TRAITS_HXX -#define INCLUDED_UNOTEST_ASSERTION_TRAITS_HXX - -// sal/types.h declares typedefs to signed char (sal_Int8) and unsigned char -// (sal_uInt8, sal_Bool), so better specialize CppUnit::assertion_traits for -// those two types to treat the toString() value as an integer rather than a -// character: - -#include <sal/config.h> - -#include <string> - -namespace CppUnit { - -template<> struct assertion_traits<signed char> { - static bool equal(signed char x, signed char y) { return x == y; } - - static std::string toString(signed char x) - { return std::to_string(static_cast<int>(x)); } -}; - -template<> struct assertion_traits<unsigned char> { - static bool equal(unsigned char x, unsigned char y) { return x == y; } - - static std::string toString(unsigned char x) - { return std::to_string(static_cast<unsigned int>(x)); } -}; - -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |