Skip to content

Commit 776df66

Browse files
committed
[Realtek] Remove no use code
1 parent 0310cb0 commit 776df66

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

examples/light-switch-app/realtek_bee/main/DeviceCallbacks.cpp

-18
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ void DeviceCallbacks::UpdateStatusLED()
116116
}
117117
}
118118

119-
#if CONFIG_ENABLE_ATTRIBUTE_SUBSCRIBE
120-
void DeviceCallbacks::TriggerSubscribe()
121-
{
122-
for (const auto & binding : BindingTable::GetInstance())
123-
{
124-
if (binding.type == MATTER_UNICAST_BINDING &&
125-
(!binding.clusterId.has_value() || binding.clusterId.value() == Clusters::OnOff::Id))
126-
{
127-
ChipLogProgress(DeviceLayer, "binding.local = %d", binding.local);
128-
DeviceLayer::PlatformMgr().ScheduleWork(BindingHandler::SwitchWorkerFunction2, binding.local);
129-
}
130-
}
131-
}
132-
#endif
133-
134119
void DeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, intptr_t arg)
135120
{
136121
// ChipLogProgress(Zcl, "DeviceEventCallback event_type 0x%x", event->Type);
@@ -179,9 +164,6 @@ void DeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, intptr_
179164
}
180165
#endif
181166

182-
#if CONFIG_ENABLE_ATTRIBUTE_SUBSCRIBE
183-
// TriggerSubscribe();
184-
#endif
185167
}
186168

187169
break;

0 commit comments

Comments
 (0)