diff options
author | amistry <amistry@chromium.org> | 2016-03-02 16:26:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-03 00:27:32 +0000 |
commit | 432564c6ecff52ab735bdc35adcf537d89b13589 (patch) | |
tree | bf35938fa14739903da55a1369a7a96d223a335b /mojo/public/tools | |
parent | b9dd98ce23a6dab545c18a21eca0783f4597b081 (diff) | |
download | chromium_src-432564c6ecff52ab735bdc35adcf537d89b13589.zip chromium_src-432564c6ecff52ab735bdc35adcf537d89b13589.tar.gz chromium_src-432564c6ecff52ab735bdc35adcf537d89b13589.tar.bz2 |
Remove MOJO_DISALLOW_COPY_AND_ASSIGN and MOJO_ALLOW_UNUSED_LOCAL.
BUG=534695
Review URL: https://codereview.chromium.org/1755003002
Cr-Commit-Position: refs/heads/master@{#378891}
Diffstat (limited to 'mojo/public/tools')
-rw-r--r-- | mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl | 4 | ||||
-rw-r--r-- | mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl index 8b20615..de7469c 100644 --- a/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl +++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl @@ -183,7 +183,7 @@ void {{proxy_name}}::{{method.name}}( bool ok = receiver_->Accept(builder.message()); // This return value may be ignored as !ok implies the Connector has // encountered an error, which will be visible through other means. - MOJO_ALLOW_UNUSED_LOCAL(ok); + ALLOW_UNUSED_LOCAL(ok); {%- endif %} } {%- endfor %} @@ -242,7 +242,7 @@ void {{class_name}}_{{method.name}}_ProxyToResponder::Run( {{build_message(response_params_struct, "in_%s", params_description, "&serialization_context_")}} bool ok = responder_->Accept(builder.message()); - MOJO_ALLOW_UNUSED_LOCAL(ok); + ALLOW_UNUSED_LOCAL(ok); // TODO(darin): !ok returned here indicates a malformed message, and that may // be good reason to close the connection. However, we don't have a way to do // that from here. We should add a way. diff --git a/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl index 9e39e35..90d6152 100644 --- a/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl +++ b/mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl @@ -29,7 +29,7 @@ bool {{class_name}}::Validate(const void* data, return false; } const {{class_name}}* object = static_cast<const {{class_name}}*>(data); - MOJO_ALLOW_UNUSED_LOCAL(object); + ALLOW_UNUSED_LOCAL(object); switch (object->tag) { {% for field in union.fields %} |