Remove deprecated SkBase64 interface.
No longer used and troublesome to use, so remove. Change-Id: Idad9dd3325443f7e546465abf551de9784d9f829 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/352512 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
489e55252e
commit
1b1c73ad50
@ -18,15 +18,6 @@ public:
|
||||
kBadCharError
|
||||
};
|
||||
|
||||
/** @deprecated */
|
||||
SkBase64();
|
||||
/** @deprecated, required user to `delete skbase64.getData()` */
|
||||
Error decode(const char* src, size_t length);
|
||||
/** @deprecated */
|
||||
char* getData() { return fData; }
|
||||
/** @deprecated */
|
||||
size_t getDataSize() { return fLength; }
|
||||
|
||||
/**
|
||||
Base64 encodes src into dst.
|
||||
|
||||
@ -55,12 +46,6 @@ public:
|
||||
*/
|
||||
static Error SK_WARN_UNUSED_RESULT Decode(const void* src, size_t srcLength,
|
||||
void* dst, size_t* dstLength);
|
||||
|
||||
private:
|
||||
/** @deprecated */
|
||||
size_t fLength;
|
||||
/** @deprecated */
|
||||
char* fData;
|
||||
};
|
||||
|
||||
#endif // SkBase64_DEFINED
|
||||
|
@ -150,16 +150,3 @@ size_t SkBase64::Encode(const void* srcv, size_t length, void* dstv, const char*
|
||||
}
|
||||
return (length + 2) / 3 * 4;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
SkBase64::SkBase64() : fLength((size_t) -1), fData(nullptr) {}
|
||||
|
||||
/** @deprecated */
|
||||
SkBase64::Error SkBase64::decode(const char* src, size_t len) {
|
||||
Error err = SkBase64::Decode(src, len, nullptr, &fLength);
|
||||
if (err != kNoError) {
|
||||
return err;
|
||||
}
|
||||
fData = new char[fLength];
|
||||
return SkBase64::Decode(src, len, fData, &fLength);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user