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

Issue 909903003: Remove unnecessary/unreachable |return| from generated union code. (Closed)

Created:
5 years, 10 months ago by viettrungluu
Modified:
5 years, 10 months ago
Reviewers:
azani
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Remove unnecessary/unreachable |return| from generated union code. (MSVS complains about it with warning C4702.) Also remove unnecessary |break|s (all code paths inside each |case| lead to a |return|). Also, as a drive-by, remove a unnecessary semicolon. TBR=azani@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/dcf5a5e1dbccb91f774d545b5f31d06042d8a8e3

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -4 lines) Patch
M mojo/public/tools/bindings/generators/cpp_templates/union_definition.tmpl View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
viettrungluu
5 years, 10 months ago (2015-02-09 21:14:02 UTC) #1
viettrungluu
5 years, 10 months ago (2015-02-09 21:22:35 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
dcf5a5e1dbccb91f774d545b5f31d06042d8a8e3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698