File tree 2 files changed +0
-26
lines changed
2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -175,25 +175,6 @@ void VirtualObjectIdManager::clear()
175
175
m_switchIndexes.clear ();
176
176
}
177
177
178
- uint32_t VirtualObjectIdManager::allocateNewSwitchIndex ()
179
- {
180
- SWSS_LOG_ENTER ();
181
-
182
- for (uint32_t index = 0 ; index < SAI_REDIS_SWITCH_INDEX_MAX; ++index )
183
- {
184
- if (m_switchIndexes.find (index ) != m_switchIndexes.end ())
185
- continue ;
186
-
187
- m_switchIndexes.insert (index );
188
-
189
- SWSS_LOG_NOTICE (" allocated new switch index 0x%x" , index );
190
-
191
- return index ;
192
- }
193
-
194
- SWSS_LOG_THROW (" no more available switch indexes (used count is: %zu)" , m_switchIndexes.size ());
195
- }
196
-
197
178
void VirtualObjectIdManager::releaseSwitchIndex (
198
179
_In_ uint32_t index)
199
180
{
Original file line number Diff line number Diff line change @@ -91,13 +91,6 @@ namespace sairedis
91
91
void releaseSwitchIndex (
92
92
_In_ uint32_t index);
93
93
94
- /* *
95
- * @brief Allocate new switch index.
96
- *
97
- * Will throw if there are no more available switch indexes.
98
- */
99
- uint32_t allocateNewSwitchIndex ();
100
-
101
94
/* *
102
95
* @brief Construct object id.
103
96
*
You can’t perform that action at this time.
0 commit comments