Skip to content

Commit 8a31442

Browse files
xavierarteagacodebot
authored andcommitted
phy: removed shared grid unused identifier
1 parent 4606285 commit 8a31442

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

include/srsran/phy/support/shared_resource_grid.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ class shared_resource_grid
6969
release();
7070

7171
// Overwrite with the other grid.
72-
pool = other.pool;
73-
ref_count = other.ref_count;
74-
identifier = other.identifier;
72+
pool = other.pool;
73+
ref_count = other.ref_count;
7574

7675
// Invalidate the other grid.
7776
other.pool = nullptr;
@@ -150,7 +149,7 @@ class shared_resource_grid
150149
private:
151150
/// Copy constructor is explicit to avoid copying unintentionally.
152151
explicit shared_resource_grid(const shared_resource_grid& other) noexcept :
153-
pool(other.pool), ref_count(other.ref_count), identifier(other.identifier)
152+
pool(other.pool), ref_count(other.ref_count)
154153
{
155154
if (is_valid()) {
156155
inc_ref_count();
@@ -170,8 +169,6 @@ class shared_resource_grid
170169
pool_interface* pool = nullptr;
171170
/// Reference counter. Set to \c nullptr for invalid resource grid.
172171
std::atomic<unsigned>* ref_count = nullptr;
173-
/// Resource grid identifier within the resource grid pool.
174-
unsigned identifier = 0;
175172
};
176173

177174
} // namespace srsran

0 commit comments

Comments
 (0)