Skip to content

Commit 49a4d49

Browse files
committed
Drop unneeded regex
This pollutes a bunch of compile units with unneeded code for creating and handling the regex.
1 parent 651d9e5 commit 49a4d49

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Detectors/DCS/include/DetectorsDCS/DeliveryType.h

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,11 @@
2020
#define O2_DCS_DELIVERY_TYPE
2121

2222
#include <string>
23-
#include <regex>
2423
#include <stdexcept>
2524
#include "DetectorsDCS/GenericFunctions.h"
2625

27-
namespace o2
28-
{
29-
namespace dcs
26+
namespace o2::dcs
3027
{
31-
/**
32-
* This regular expression matches with strings representing payload types.
33-
*/
34-
static const std::regex REGEX_PT(
35-
"^(Raw|DPVAL)/(Int|Uint|Float|Double|Bool|Char|String|Time|Binary)$");
36-
3728
/**
3829
* <p>DeliveryType is a piece of meta-information used for deducing types of
3930
* DPVAL payloads and DIM service description strings used with services
@@ -406,8 +397,8 @@ inline size_t dim_buffer_size(const DeliveryType type)
406397
throw std::domain_error("Illegal DeliveryType.");
407398
}
408399
}
409-
} // namespace dcs
400+
} // namespace o2::dcs
401+
410402

411-
} // namespace o2
412403

413404
#endif /* O2_DCS_DELIVERY_TYPE */

0 commit comments

Comments
 (0)