Web Replay: don't encode/decode primitive types that lack explicit sizes
[WebKit-https.git] / Source / JavaScriptCore / replay / EncodedValue.cpp
index 0191d41..cee70e2 100644 (file)
@@ -90,11 +90,6 @@ template<> EncodedValue ScalarEncodingTraits<uint64_t>::encodeValue(const uint64
     return EncodedValue(InspectorBasicValue::create((double)value));
 }
 
-template<> EncodedValue ScalarEncodingTraits<unsigned long>::encodeValue(const unsigned long& value)
-{
-    return EncodedValue(InspectorBasicValue::create((double)value));
-}
-
 template<> bool EncodedValue::convertTo<bool>()
 {
     bool result;
@@ -158,15 +153,6 @@ template<> uint64_t EncodedValue::convertTo<uint64_t>()
     return result;
 }
 
-template<> unsigned long EncodedValue::convertTo<unsigned long>()
-{
-    unsigned long result;
-    bool castSucceeded = m_value->asNumber(&result);
-    ASSERT_UNUSED(castSucceeded, castSucceeded);
-
-    return result;
-}
-
 template<> String EncodedValue::convertTo<String>()
 {
     String result;