diff --git a/frameworks/native/sensor/src/sensor_service_proxy.cpp b/frameworks/native/sensor/src/sensor_service_proxy.cpp index da794bc939ab70632718056dc9bd0d9ff919e834..6e3a51c9e18cb6b4806ba6df4eb01fd1483857b3 100755 --- a/frameworks/native/sensor/src/sensor_service_proxy.cpp +++ b/frameworks/native/sensor/src/sensor_service_proxy.cpp @@ -180,7 +180,6 @@ std::vector SensorServiceProxy::GetSensorList() ErrCode SensorServiceProxy::TransferDataChannel(const sptr &sensorBasicDataChannel, const sptr &sensorClient) { - HiLog::Debug(LABEL, "%{public}s sendFd: %{public}d", __func__, sensorBasicDataChannel->GetSendDataFd()); if (sensorBasicDataChannel == nullptr || sensorClient == nullptr) { HiLog::Error(LABEL, "%{public}s sensorBasicDataChannel or sensorClient cannot be null", __func__); return OBJECT_NULL; diff --git a/interfaces/native/include/sensor_agent_type.h b/interfaces/native/include/sensor_agent_type.h index d4d7dee3224b8acaa670dc3a3df6173d1f4cb750..323b2f76e44dbbe4278d1e6d4899ad1bb22b1a42 100644 --- a/interfaces/native/include/sensor_agent_type.h +++ b/interfaces/native/include/sensor_agent_type.h @@ -128,12 +128,6 @@ typedef struct SensorEvent { uint32_t dataLen; /**< Sensor data length */ } SensorEvent; -struct Test { -char ip[30]; -char name[30]; -int32_t *data; -}; - /** * @brief Defines the callback for data reporting by the sensor agent. * diff --git a/services/sensor/src/sensor_service.cpp b/services/sensor/src/sensor_service.cpp index a7e736a7facc607b2d73f21d05cf2cf60d8e1576..2cdc99fd89233c721a20c72ac2bf092d91d425a1 100644 --- a/services/sensor/src/sensor_service.cpp +++ b/services/sensor/src/sensor_service.cpp @@ -40,7 +40,6 @@ constexpr int32_t MAX_DMUP_PARAM = 2; constexpr int32_t INVALID_PID = -1; constexpr int64_t MAX_EVENT_COUNT = 1000; constexpr uint32_t REPORT_STATUS_LEN = 20; -int32_t g_sendFd = 0; enum { FLUSH = 0, SET_MODE, @@ -367,7 +366,6 @@ std::vector SensorService::GetSensorList() ErrCode SensorService::TransferDataChannel(const sptr &sensorBasicDataChannel, const sptr &sensorClient) { - g_sendFd = sensorBasicDataChannel->GetSendDataFd(); if ((sensorBasicDataChannel == nullptr)) { HiLog::Error(LABEL, "%{public}s sensorBasicDataChannel cannot be null", __func__); return ERR_NO_INIT;