From 097729125ab20df4d92c67fe573e3d3b7b5a0c1b Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Thu, 22 Sep 2022 10:07:08 -0700 Subject: [PATCH] Removed a unnecessary function (#31090) --- test/core/slice/b64_test.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/core/slice/b64_test.cc b/test/core/slice/b64_test.cc index 265febed49a..e7c34f2e2ad 100644 --- a/test/core/slice/b64_test.cc +++ b/test/core/slice/b64_test.cc @@ -31,19 +31,6 @@ #include "src/core/lib/slice/slice_internal.h" #include "test/core/util/test_config.h" -static int buffers_are_equal(const unsigned char* buf1, - const unsigned char* buf2, size_t size) { - size_t i; - for (i = 0; i < size; i++) { - if (buf1[i] != buf2[i]) { - gpr_log(GPR_ERROR, "buf1 and buf2 differ: buf1[%d] = %x vs buf2[%d] = %x", - static_cast(i), buf1[i], static_cast(i), buf2[i]); - return 0; - } - } - return 1; -} - static void test_simple_encode_decode_b64(int url_safe, int multiline) { const char* hello = "hello"; char* hello_b64 =