Improve test cases for network information APIs
[WebKit-https.git] / Source / WebCore / Modules / networkinfo / NetworkInfoConnection.cpp
index 159fecc..9a4231c 100644 (file)
@@ -57,17 +57,11 @@ NetworkInfoConnection::~NetworkInfoConnection()
 
 double NetworkInfoConnection::bandwidth() const
 {
-    if (m_networkInfo)
-        return m_networkInfo->bandwidth();
-    
     return m_controller->client()->bandwidth();
 }
 
 bool NetworkInfoConnection::metered() const
 {
-    if (m_networkInfo)
-        return m_networkInfo->metered();
-    
     return m_controller->client()->metered();
 }