Skip to content

Commit

Permalink
Remove legacy array checks.
Browse files Browse the repository at this point in the history
The ChimeraTK code has been changed so that all ProcessVariables are
ProcessArrays, so that check does not make any sense and only causes
errors
  • Loading branch information
smarsching committed Feb 8, 2018
1 parent 13b7537 commit 3cea5e2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions chimeraTKApp/src/ChimeraTK/EPICS/RecordDeviceSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,6 @@ struct RecordDeviceSupportScalarTrait {
* value type that is not supported by this implementation.
*/
void initializeDataAccess(ProcessVariable::SharedPtr processVariable) {
if (processVariable->isArray()) {
throw std::runtime_error(
"This record type only supports scalar process variables, however it refers to an array process variable.");
}
std::type_info const & valueType = processVariable->getValueType();
if (valueType == typeid(std::int8_t)) {
dataAccess.reset(new ScalarDataAccessImpl<std::int8_t>(processVariable));
Expand Down Expand Up @@ -452,10 +448,6 @@ struct RecordDeviceSupportArrayTrait {
*/
void initializeDataAccess(ProcessVariable::SharedPtr processVariable,
epicsEnum16 ftvl, epicsUInt32 nelm) {
if (!processVariable->isArray()) {
throw std::runtime_error(
"This record type only supports array process variables, however it refers to a scalar process variable.");
}
std::type_info const & valueType = processVariable->getValueType();
if (valueType == typeid(std::int8_t)) {
dataAccess.reset(
Expand Down

0 comments on commit 3cea5e2

Please sign in to comment.