Skip to content

Commit

Permalink
Drop unneeded regex
Browse files Browse the repository at this point in the history
This pollutes a bunch of compile units with unneeded code for creating and handling
the regex.
  • Loading branch information
ktf committed Jan 10, 2025
1 parent 651d9e5 commit d35d38c
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Detectors/DCS/include/DetectorsDCS/DeliveryType.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,11 @@
#define O2_DCS_DELIVERY_TYPE

#include <string>
#include <regex>
#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 +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 */

0 comments on commit d35d38c

Please sign in to comment.