Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: src/utils/SkOSFile.cpp

Issue 366243004: Cleanup: Remove SkUTF16_Str API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkOSFile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkOSFile.cpp
diff --git a/src/utils/SkOSFile.cpp b/src/utils/SkOSFile.cpp
index 0a403750b8b9f44165163ef61475b1465ec22144..20ee3a4aad298c4c9db2eb4229c230a54081407e 100644
--- a/src/utils/SkOSFile.cpp
+++ b/src/utils/SkOSFile.cpp
@@ -54,17 +54,6 @@ static uint16_t* concat_to_16(const char src[], const char suffix[])
return dst;
}
-SkUTF16_Str::SkUTF16_Str(const char src[])
-{
- size_t len = strlen(src);
-
- fStr = (uint16_t*)sk_malloc_throw((len + 1) * sizeof(uint16_t));
- size_t i;
- for (i = 0; i < len; i++)
- fStr[i] = src[i];
- fStr[i] = 0;
-}
-
////////////////////////////////////////////////////////////////////////////
SkOSFile::Iter::Iter() : fHandle(0), fPath16(NULL)
« no previous file with comments | « include/core/SkOSFile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698