Removing unused code in .NET for parsing W3C protocol error responses
@@ -119,13 +119,6 @@ private Response(Dictionary<string, object> rawResponse)
this.responseStatus = WebDriverError.ResultFromError(valueDictionary["error"].ToString());
}
}
-
- // Check for an error response by looking for an "error" property,
- // and if found, convert to a numeric status code.
- if (rawResponse.ContainsKey("error"))
- {
- this.responseStatus = WebDriverError.ResultFromError(rawResponse["error"].ToString());
- }
}
}
