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

Unified Diff: base/json/json_parser.cc

Issue 10389209: Coverity: Remove dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another. Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_parser.cc
diff --git a/base/json/json_parser.cc b/base/json/json_parser.cc
index d1bba4464b1dfd6ee6d9f891bca8312b8c09adb3..10f1203eb40509520ae681f04917e7e808bf288f 100644
--- a/base/json/json_parser.cc
+++ b/base/json/json_parser.cc
@@ -542,9 +542,6 @@ Value* JSONParser::ConsumeDictionary() {
}
}
- if (token != T_OBJECT_END)
- return NULL;
-
return dict.release();
}
@@ -588,9 +585,6 @@ Value* JSONParser::ConsumeList() {
}
}
- if (token != T_ARRAY_END)
- return NULL;
-
return list.release();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698