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 <johnstiles@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
John Stiles 2020-07-27 16:08:49 -04:00 committed by Skia Commit-Bot
parent 9d5461f368
commit 0307e9114c

View File

@ -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