Skip to content

Commit 682d6c4

Browse files
[ADT] Fix a warning
This patch fixes: llvm/unittests/ADT/DenseMapTest.cpp:94:25: error: unused function 'getTestValue' [-Werror,-Wunused-function]
1 parent 922fca5 commit 682d6c4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/unittests/ADT/DenseMapTest.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ std::optional<uint32_t> getTestKey(int i, std::optional<uint32_t> *) {
9191
return i;
9292
}
9393

94-
std::optional<uint32_t> getTestValue(int i, std::optional<uint32_t> *) {
95-
return 42 + i;
96-
}
97-
9894
// Test fixture, with helper functions implemented by forwarding to global
9995
// function overloads selected by component types of the type parameter. This
10096
// allows all of the map implementations to be tested with shared

0 commit comments

Comments
 (0)