Commit 5159cfc6 authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Remove unused methods in std::string StringTraits

IsNull and SetToNull aren't needed as the STL string type doesn't use
nullable_is_same_type.

Change-Id: I0770b42e275e3026749c5409015c4b79941ea56f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386744Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#803654}
parent 54cd2ba3
...@@ -13,16 +13,6 @@ namespace mojo { ...@@ -13,16 +13,6 @@ namespace mojo {
template <> template <>
struct StringTraits<std::string> { struct StringTraits<std::string> {
static bool IsNull(const std::string& input) {
// std::string is always converted to non-null mojom string.
return false;
}
static void SetToNull(std::string* output) {
// std::string doesn't support null state. Set it to empty instead.
output->clear();
}
static const std::string& GetUTF8(const std::string& input) { return input; } static const std::string& GetUTF8(const std::string& input) { return input; }
static bool Read(StringDataView input, std::string* output) { static bool Read(StringDataView input, std::string* output) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment