Skip to content

Commit fff0296

Browse files
authored
Drop unneeded regex (#13851)
The unused regex pollutes a bunch of compile units with unneeded code.
1 parent 501ef18 commit fff0296

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

Detectors/DCS/include/DetectorsDCS/DeliveryType.h

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

2222
#include <string>
23-
#include <regex>
23+
#include <bitset>
2424
#include <stdexcept>
2525
#include "DetectorsDCS/GenericFunctions.h"
2626

27-
namespace o2
28-
{
29-
namespace dcs
27+
namespace o2::dcs
3028
{
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-
3729
/**
3830
* <p>DeliveryType is a piece of meta-information used for deducing types of
3931
* DPVAL payloads and DIM service description strings used with services
@@ -406,8 +398,8 @@ inline size_t dim_buffer_size(const DeliveryType type)
406398
throw std::domain_error("Illegal DeliveryType.");
407399
}
408400
}
409-
} // namespace dcs
401+
} // namespace o2::dcs
402+
410403

411-
} // namespace o2
412404

413405
#endif /* O2_DCS_DELIVERY_TYPE */

0 commit comments

Comments
 (0)