From 49a4d49533f14cc16c14705ee5dae0335aa32fd8 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:26:23 +0100 Subject: [PATCH] Drop unneeded regex This pollutes a bunch of compile units with unneeded code for creating and handling the regex. --- Detectors/DCS/include/DetectorsDCS/DeliveryType.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Detectors/DCS/include/DetectorsDCS/DeliveryType.h b/Detectors/DCS/include/DetectorsDCS/DeliveryType.h index 236d9eb084759..13492402ebe35 100644 --- a/Detectors/DCS/include/DetectorsDCS/DeliveryType.h +++ b/Detectors/DCS/include/DetectorsDCS/DeliveryType.h @@ -20,20 +20,11 @@ #define O2_DCS_DELIVERY_TYPE #include -#include #include #include "DetectorsDCS/GenericFunctions.h" -namespace o2 -{ -namespace dcs +namespace o2::dcs { -/** - * This regular expression matches with strings representing payload types. - */ -static const std::regex REGEX_PT( - "^(Raw|DPVAL)/(Int|Uint|Float|Double|Bool|Char|String|Time|Binary)$"); - /** *

DeliveryType is a piece of meta-information used for deducing types of * DPVAL payloads and DIM service description strings used with services @@ -406,8 +397,8 @@ inline size_t dim_buffer_size(const DeliveryType type) throw std::domain_error("Illegal DeliveryType."); } } -} // namespace dcs +} // namespace o2::dcs + -} // namespace o2 #endif /* O2_DCS_DELIVERY_TYPE */