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

Side by Side Diff: Source/platform/JSONValues.cpp

Issue 1184093002: Removing unused functions from JSONValues class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « Source/platform/JSONValues.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 bool JSONValue::asNumber(unsigned*) const 123 bool JSONValue::asNumber(unsigned*) const
124 { 124 {
125 return false; 125 return false;
126 } 126 }
127 127
128 bool JSONValue::asString(String*) const 128 bool JSONValue::asString(String*) const
129 { 129 {
130 return false; 130 return false;
131 } 131 }
132 132
133 bool JSONValue::asValue(RefPtr<JSONValue>* output)
134 {
135 *output = this;
136 return true;
137 }
138
139 bool JSONValue::asObject(RefPtr<JSONObject>*) 133 bool JSONValue::asObject(RefPtr<JSONObject>*)
140 { 134 {
141 return false; 135 return false;
142 } 136 }
143 137
144 bool JSONValue::asArray(RefPtr<JSONArray>*) 138 bool JSONValue::asArray(RefPtr<JSONArray>*)
145 { 139 {
146 return false; 140 return false;
147 } 141 }
148 142
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 m_data.append(value); 521 m_data.append(value);
528 } 522 }
529 523
530 PassRefPtr<JSONValue> JSONArrayBase::get(size_t index) 524 PassRefPtr<JSONValue> JSONArrayBase::get(size_t index)
531 { 525 {
532 ASSERT_WITH_SECURITY_IMPLICATION(index < m_data.size()); 526 ASSERT_WITH_SECURITY_IMPLICATION(index < m_data.size());
533 return m_data[index]; 527 return m_data[index];
534 } 528 }
535 529
536 } // namespace blink 530 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/JSONValues.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698