Skip to content

Commit 7d26047

Browse files
authored
rlp: Remove dead encode(array) function (#1342)
1 parent 776c3af commit 7d26047

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

test/state/rlp.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ inline bytes encode(const std::vector<T>& v)
8686
return internal::encode_container(v.begin(), v.end());
8787
}
8888

89-
template <typename T, size_t N>
90-
inline bytes encode(const T (&v)[N])
91-
{
92-
return internal::encode_container(std::begin(v), std::end(v));
93-
}
94-
9589
/// Encodes the fixed-size collection of heterogeneous values as RLP list.
9690
template <typename... Types>
9791
inline bytes encode_tuple(const Types&... elements)

test/unittests/state_rlp_test.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ TEST(state_rlp, encode_string_long)
6565
EXPECT_EQ(hex({r4.data(), 10}), "baffffff000000000000");
6666
}
6767

68-
TEST(state_rlp, encode_c_array)
69-
{
70-
const uint64_t a[]{1, 2, 3};
71-
EXPECT_EQ(hex(rlp::encode(a)), "c3010203");
72-
}
73-
7468
TEST(state_rlp, encode_vector)
7569
{
7670
const auto x = 0xe1e2e3e4e5e6e7d0d1d2d3d4d5d6d7c0c1c2c3c4c5c6c7b0b1b2b3b4b5b6b7_u256;

0 commit comments

Comments
 (0)