diff --git a/src/turboPmacAxis.cpp b/src/turboPmacAxis.cpp index 5c01642..20446da 100644 --- a/src/turboPmacAxis.cpp +++ b/src/turboPmacAxis.cpp @@ -42,29 +42,6 @@ turboPmacAxis::turboPmacAxis(turboPmacController *pC, int axisNo, asynStatus status = asynSuccess; - /* - The superclass constructor sinqAxis calls in turn its superclass constructor - asynMotorAxis. In the latter, a pointer to the constructed object this is - stored inside the array pAxes_: - - pC->pAxes_[axisNo] = this; - - Therefore, the axes are managed by the controller pC. If axisNo is out of - bounds, asynMotorAxis prints an error (see - https://github.com/epics-modules/motor/blob/master/motorApp/MotorSrc/asynMotorAxis.cpp, - line 40). However, we want the IOC creation to stop completely, since this - is a configuration error. - */ - if (axisNo >= pC->numAxes()) { - asynPrint(pC_->pasynUser(), ASYN_TRACE_ERROR, - "Controller \"%s\", axis %d => %s, line %d: FATAL ERROR: " - "Axis index %d must be smaller than the total number of axes " - "%d", - pC_->portName, axisNo_, __PRETTY_FUNCTION__, __LINE__, - axisNo_, pC->numAxes()); - exit(-1); - } - if (initialize) { // Register the hook function during construction of the first axis // object