diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 06d21c89e69cd..2e94334dc46bc 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1131,23 +1131,6 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg) } #endif - case MAVLINK_MSG_ID_DISTANCE_SENSOR: - { - copter.rangefinder.handle_msg(msg); -#if PROXIMITY_ENABLED == ENABLED - copter.g2.proximity.handle_msg(msg); -#endif - break; - } - - case MAVLINK_MSG_ID_OBSTACLE_DISTANCE: - { -#if PROXIMITY_ENABLED == ENABLED - copter.g2.proximity.handle_msg(msg); -#endif - break; - } - #if HIL_MODE != HIL_MODE_DISABLED case MAVLINK_MSG_ID_HIL_STATE: // MAV ID: 90 {