소스 검색

Removes commented code

Signed-off-by: CapXilinx <melik-merkumians@acin.tuwien.ac.at>
CapXilinx 8 년 전
부모
커밋
19ca5f081a
1개의 변경된 파일0개의 추가작업 그리고 65개의 파일을 삭제
  1. 0 65
      source/src/cip/cipconnectionmanager.c

+ 0 - 65
source/src/cip/cipconnectionmanager.c

@@ -299,71 +299,6 @@ EipStatus HandleReceivedConnectedData(
   return kEipStatusOk;
 }
 
-//void ReadOutConnectionObjectFromMessage(
-//  CipMessageRouterRequest *const message_router_request,
-//  ConnectionObject *const connection_object);
-//
-//void ReadOutConnectionObjectFromMessage(
-//  CipMessageRouterRequest *const message_router_request,
-//  ConnectionObject *const connection_object
-//  ) {
-//  connection_object->priority_timetick = *message_router_request->data++;
-//  connection_object->timeout_ticks = *message_router_request->data++;
-//  /* O_to_T Conn ID */
-//  connection_object->cip_consumed_connection_id = GetDintFromMessage(
-//    &message_router_request->data);
-//  /* T_to_O Conn ID */
-//  connection_object->cip_produced_connection_id = GetDintFromMessage(
-//    &message_router_request->data);
-//  connection_object->connection_serial_number = GetIntFromMessage(
-//    &message_router_request->data);
-//  connection_object->originator_vendor_id = GetIntFromMessage(
-//    &message_router_request->data);
-//  connection_object->originator_serial_number = GetDintFromMessage(
-//    &message_router_request->data);
-//
-//  /* keep it to none existent till the setup is done this eases error handling and
-//   * the state changes within the forward open request can not be detected from
-//   * the application or from outside (reason we are single threaded)*/
-//  connection_object->state = kConnectionStateNonExistent;
-//  connection_object->sequence_count_producing = 0; /* set the sequence count to zero */
-//
-//  connection_object->connection_timeout_multiplier = *message_router_request
-//                                                     ->data++;
-//  message_router_request->data += 3; /* reserved */
-//  /* the requested packet interval parameter needs to be a multiple of TIMERTICK from the header file */
-//  OPENER_TRACE_INFO(
-//    "ForwardOpen: ConConnID %" PRIu32 ", ProdConnID %" PRIu32
-//    ", ConnSerNo %u\n",
-//    connection_object->cip_consumed_connection_id,
-//    connection_object->cip_produced_connection_id,
-//    connection_object->connection_serial_number);
-//
-//  connection_object->o_to_t_requested_packet_interval = GetDintFromMessage(
-//    &message_router_request->data);
-//
-//  connection_object->o_to_t_network_connection_parameter = GetIntFromMessage(
-//    &message_router_request->data);
-//  connection_object->t_to_o_requested_packet_interval = GetDintFromMessage(
-//    &message_router_request->data);
-//
-//  EipUint32 temp = connection_object->t_to_o_requested_packet_interval
-//                   % (kOpenerTimerTickInMilliSeconds * 1000);
-//  if (temp > 0) {
-//    connection_object->t_to_o_requested_packet_interval =
-//      (EipUint32) ( connection_object->t_to_o_requested_packet_interval
-//                    / (kOpenerTimerTickInMilliSeconds * 1000) )
-//      * (kOpenerTimerTickInMilliSeconds * 1000)
-//      + (kOpenerTimerTickInMilliSeconds * 1000);
-//  }
-//
-//  connection_object->t_to_o_network_connection_parameter = GetIntFromMessage(
-//    &message_router_request->data);
-//
-//  connection_object->transport_type_class_trigger = *message_router_request
-//                                                    ->data++;
-//}
-
 /** @brief Function prototype for all Forward Open handle functions
  *
  */