Blame SOURCES/remove-unused-functions-from-test-runner.patch

1025aa
From d22c4c1e3ab9ffe5faaa08bacd993c814ca1c92e Mon Sep 17 00:00:00 2001
1025aa
From: Sergio Correia <scorreia@redhat.com>
1025aa
Date: Tue, 18 Feb 2020 09:11:05 -0300
1025aa
Subject: [PATCH] Remove unused functions from test runner.
1025aa
MIME-Version: 1.0
1025aa
Content-Type: text/plain; charset=UTF-8
1025aa
Content-Transfer-Encoding: 8bit
1025aa
1025aa
Upstream: 705e519bf56e5904c761a411b38a66e84bf7fc2d
1025aa
1025aa
PR-URL: https://github.com/nodejs-private/http-parser-private/pull/1
1025aa
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
1025aa
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1025aa
Reviewed-By: Evan Lucas <evanlucas@me.com>
1025aa
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
1025aa
Reviewed-By: James M Snell <jasnell@gmail.com>
1025aa
Reviewed-By: Rod Vagg <rod@vagg.org>
1025aa
---
1025aa
 test.c | 14 --------------
1025aa
 1 file changed, 14 deletions(-)
1025aa
1025aa
diff --git a/test.c b/test.c
1025aa
index cb445ce..a1fa0d3 100644
1025aa
--- a/test.c
1025aa
+++ b/test.c
1025aa
@@ -27,9 +27,7 @@
1025aa
 #include <stdarg.h>
1025aa
 
1025aa
 #if defined(__APPLE__)
1025aa
-# undef strlcat
1025aa
 # undef strlncpy
1025aa
-# undef strlcpy
1025aa
 #endif  /* defined(__APPLE__) */
1025aa
 
1025aa
 #undef TRUE
1025aa
@@ -1993,12 +1991,6 @@ strlncat(char *dst, size_t len, const char *src, size_t n)
1025aa
   return slen + dlen;
1025aa
 }
1025aa
 
1025aa
-size_t
1025aa
-strlcat(char *dst, const char *src, size_t len)
1025aa
-{
1025aa
-  return strlncat(dst, len, src, (size_t) -1);
1025aa
-}
1025aa
-
1025aa
 size_t
1025aa
 strlncpy(char *dst, size_t len, const char *src, size_t n)
1025aa
 {
1025aa
@@ -2017,12 +2009,6 @@ strlncpy(char *dst, size_t len, const char *src, size_t n)
1025aa
   return slen;
1025aa
 }
1025aa
 
1025aa
-size_t
1025aa
-strlcpy(char *dst, const char *src, size_t len)
1025aa
-{
1025aa
-  return strlncpy(dst, len, src, (size_t) -1);
1025aa
-}
1025aa
-
1025aa
 int
1025aa
 request_url_cb (http_parser *p, const char *buf, size_t len)
1025aa
 {
1025aa
-- 
1025aa
2.18.2
1025aa