From 3dc064adcbfa49a5154e3bc68f92de2679dbf404 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 27 Nov 2019 14:33:42 +0100 Subject: [PATCH] [App/DHL] Remove unused InitialCondition.h. --- Applications/DataHolderLib/InitialCondition.h | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 Applications/DataHolderLib/InitialCondition.h diff --git a/Applications/DataHolderLib/InitialCondition.h b/Applications/DataHolderLib/InitialCondition.h deleted file mode 100644 index 693d8f37c07..00000000000 --- a/Applications/DataHolderLib/InitialCondition.h +++ /dev/null @@ -1,43 +0,0 @@ -/** - * \file - * \author Karsten Rink - * \date 2010-02-04 - * \brief Definition of the Color class. - * - * \copyright - * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) - * Distributed under a Modified BSD License. - * See accompanying file LICENSE.txt or - * http://www.opengeosys.org/project/license - * - * - */ - -#pragma once - -#include <array> -#include <map> -#include <string> - -namespace DataHolderLib -{ -using Color = std::array<unsigned char, 4>; - -Color createColor(unsigned char r, unsigned char g, unsigned char b); - -Color createColor(unsigned char r, unsigned char g, unsigned char b, - unsigned char a); - -/// Returns a random RGB colour. -Color getRandomColor(); - -/// Uses a color-lookup-table (in form of a map) to return a colour for a -/// specified name. If the name is not in the colortable a new entry is created -/// with the new name and a random colour. -Color const getColor(const std::string& id, - std::map<std::string, DataHolderLib::Color>& colors); - -/// Convenience function to use the getColor method with numbers as identifiers. -Color const getColor(double id, - std::map<std::string, DataHolderLib::Color>& colors); -} // namespace DataHolderLib -- GitLab