Skip to content

Commit

Permalink
Drop unneeded regex (#13851)
Browse files Browse the repository at this point in the history
The unused regex pollutes a bunch of compile units with unneeded code.
  • Loading branch information
ktf authored Jan 10, 2025
1 parent 501ef18 commit fff0296
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Detectors/DCS/include/DetectorsDCS/DeliveryType.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,12 @@
#define O2_DCS_DELIVERY_TYPE

#include <string>
#include <regex>
#include <bitset>
#include <stdexcept>
#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)$");

/**
* <p>DeliveryType is a piece of meta-information used for deducing types of
* DPVAL payloads and DIM service description strings used with services
Expand Down Expand Up @@ -406,8 +398,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 */

0 comments on commit fff0296

Please sign in to comment.