Cleanup: Remove SkUTF16_Str API.
It does not have any users in Skia, Blink and Chromium. BUG=None TEST=make all R=mtklein@google.com, reed@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/366243004
This commit is contained in:
parent
1459be5ae3
commit
e53363fa7c
@ -118,19 +118,6 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
class SkUTF16_Str {
|
||||
public:
|
||||
SkUTF16_Str(const char src[]);
|
||||
~SkUTF16_Str()
|
||||
{
|
||||
sk_free(fStr);
|
||||
}
|
||||
const uint16_t* get() const { return fStr; }
|
||||
|
||||
private:
|
||||
uint16_t* fStr;
|
||||
};
|
||||
|
||||
/**
|
||||
* Functions for modifying SkStrings which represent paths on the filesystem.
|
||||
*/
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user