Skip to content

Commit 6c43a2b

Browse files
committed
Remove unused static_cast
1 parent a693243 commit 6c43a2b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/chef/common/clusters/channel/ChannelManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ class ChannelManager : public chip::app::Clusters::Channel::Delegate
7373
private:
7474
bool isChannelMatched(const ChannelInfoType & channel, const chip::CharSpan & match);
7575
static constexpr uint32_t mDynamicEndpointFeatureMap =
76-
static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kChannelList, Feature::kLineupInfo).Raw());
76+
chip::BitMask<Feature, uint32_t>(Feature::kChannelList, Feature::kLineupInfo).Raw();
7777
static constexpr uint16_t kClusterRevision = 2;
7878
};

examples/chef/common/clusters/keypad-input/KeypadInputManager.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ class KeypadInputManager : public chip::app::Clusters::KeypadInput::Delegate
3232
uint32_t GetFeatureMap(chip::EndpointId endpoint) override;
3333

3434
private:
35-
static constexpr uint32_t mDynamicEndpointFeatureMap = static_cast<uint32_t>(
36-
chip::BitMask<Feature, uint32_t>(Feature::kNavigationKeyCodes, Feature::kLocationKeys, Feature::kNumberKeys).Raw());
35+
static constexpr uint32_t mDynamicEndpointFeatureMap =
36+
chip::BitMask<Feature, uint32_t>(Feature::kNavigationKeyCodes, Feature::kLocationKeys, Feature::kNumberKeys).Raw();
3737
};

examples/chef/common/clusters/media-playback/MediaPlaybackManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@ class MediaPlaybackManager : public chip::app::Clusters::MediaPlayback::Delegate
112112

113113
private:
114114
static constexpr uint32_t mDynamicEndpointFeatureMap =
115-
static_cast<uint32_t>(chip::BitMask<Feature, uint32_t>(Feature::kAdvancedSeek, Feature::kVariableSpeed).Raw());
115+
chip::BitMask<Feature, uint32_t>(Feature::kAdvancedSeek, Feature::kVariableSpeed).Raw();
116116
static constexpr uint16_t kClusterRevision = 2;
117117
};

0 commit comments

Comments
 (0)