From 0307e9114c30263a9f88f9a084bfd45f6e2613b6 Mon Sep 17 00:00:00 2001 From: John Stiles Date: Mon, 27 Jul 2020 16:08:49 -0400 Subject: [PATCH] Remove unreferenced function SkStrDup. This isn't used, and doesn't seem like we will have a use for it going forward. The SkString class should be used to allocate strings. Change-Id: I024d1d7edb5d4946fa9ecfd4e10af84afc8b5df8 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/306065 Commit-Queue: John Stiles Commit-Queue: Mike Klein Auto-Submit: John Stiles Reviewed-by: Mike Klein --- include/core/SkString.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/core/SkString.h b/include/core/SkString.h index 2d738444ed..ce4a83ecde 100644 --- a/include/core/SkString.h +++ b/include/core/SkString.h @@ -61,12 +61,6 @@ static inline bool SkStrContains(const char string[], const char subchar) { return (-1 != SkStrFind(string, tmp)); } -static inline char *SkStrDup(const char string[]) { - char *ret = (char *) sk_malloc_throw(strlen(string)+1); - memcpy(ret,string,strlen(string)+1); - return ret; -} - /* * The SkStrAppend... methods will write into the provided buffer, assuming it is large enough. * Each method has an associated const (e.g. SkStrAppendU32_MaxSize) which will be the largest