summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp b/chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp
index 8e25c288f78..2ed6d20664c 100644
--- a/chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp
+++ b/chromium/third_party/WebKit/Source/core/inspector/InspectorState.cpp
@@ -84,14 +84,8 @@ String InspectorState::getString(const String& propertyName)
long InspectorState::getLong(const String& propertyName)
{
- return getLong(propertyName, 0);
-}
-
-
-long InspectorState::getLong(const String& propertyName, long defaultValue)
-{
JSONObject::iterator it = m_properties->find(propertyName);
- long value = defaultValue;
+ long value = 0;
if (it != m_properties->end())
it->value->asNumber(&value);
return value;
@@ -99,13 +93,8 @@ long InspectorState::getLong(const String& propertyName, long defaultValue)
double InspectorState::getDouble(const String& propertyName)
{
- return getDouble(propertyName, 0);
-}
-
-double InspectorState::getDouble(const String& propertyName, double defaultValue)
-{
JSONObject::iterator it = m_properties->find(propertyName);
- double value = defaultValue;
+ double value = 0;
if (it != m_properties->end())
it->value->asNumber(&value);
return value;