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

Unified Diff: tools/json_schema_compiler/cc_generator.py

Issue 10217018: Alarm resolution changed to minutes and minimum delay added. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Made ValidateDelayTime global and used GetExtension instead. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/cc_generator.py
diff --git a/tools/json_schema_compiler/cc_generator.py b/tools/json_schema_compiler/cc_generator.py
index eaf6fb3e6e48dcc9f2e4e2c4308676ab36e654bf..049cb65b2288a0968729349e2a02b7d39b9f2c12 100644
--- a/tools/json_schema_compiler/cc_generator.py
+++ b/tools/json_schema_compiler/cc_generator.py
@@ -455,12 +455,6 @@ class CCGenerator(object):
c = Code()
c.Sblock('{')
- if check_type and prop.type_ not in (
- PropertyType.CHOICES, PropertyType.ANY):
- (c.Append('if (!%(value_var)s->IsType(%(value_type)s))')
- .Append(' return %(failure_value)s;')
- )
-
if prop.type_.is_fundamental:
if prop.optional:
(c.Append('%(ctype)s temp;')

Powered by Google App Engine
This is Rietveld 408576698