Skip to content

Commit 87bab71

Browse files
committed
mqtt: removing redundant code
1 parent 37a30fc commit 87bab71

3 files changed

Lines changed: 0 additions & 27 deletions

File tree

mqtt_streaming_module/include/mqtt_streaming_module/mqtt_json_receiver_fb_impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ BEGIN_NAMESPACE_OPENDAQ_MQTT_STREAMING_MODULE
2626
class MqttJsonReceiverFbImpl final : public MqttBaseFb
2727
{
2828
friend class MqttJsonFbHelper;
29-
friend class MqttJsonFbTest;
3029
friend class MqttJsonDecoderFbHelper;
3130

3231
public:

mqtt_streaming_module/src/mqtt_json_receiver_fb_impl.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,6 @@ void MqttJsonReceiverFbImpl::initBaseFunctionalBlocks()
130130
const auto fbType = MqttJsonDecoderFbImpl::CreateType();
131131
baseFbTypes.set(fbType.getId(), fbType);
132132
}
133-
if (baseFbTypes.getCount() != 0)
134-
{
135-
LOG_I("Function block types available:");
136-
}
137-
else
138-
{
139-
LOG_I("No function block types available");
140-
}
141-
142-
for (const auto& [fbName, _] : baseFbTypes)
143-
{
144-
LOG_I("\t{}", fbName.toStdString());
145-
}
146133
}
147134

148135
void MqttJsonReceiverFbImpl::readProperties()

mqtt_streaming_module/src/mqtt_root_fb_impl.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,6 @@ void MqttRootFbImpl::initBaseFunctionalBlocks()
7777
const auto fbType = MqttPublisherFbImpl::CreateType();
7878
baseFbTypes.set(fbType.getId(), fbType);
7979
}
80-
if (baseFbTypes.getCount() != 0)
81-
{
82-
LOG_I("Function block types available:");
83-
}
84-
else
85-
{
86-
LOG_I("No function block types available");
87-
}
88-
89-
for (const auto& [fbName, _] : baseFbTypes)
90-
{
91-
LOG_I("\t{}", fbName.toStdString());
92-
}
9380
}
9481

9582
void MqttRootFbImpl::initMqttSubscriber()

0 commit comments

Comments
 (0)