Commit a893ed7e authored by yhirano@chromium.org's avatar yhirano@chromium.org

[Fetch API] Remove unused code.

The outer FormData in RequestInit::RequestInit is shadowed by the inner
one and completely useless.

The variable was introduced at [1] and the bug was found by brucedawson@.

1: https://codereview.chromium.org/1301523002

BUG=457484

Review URL: https://codereview.chromium.org/1293873003

git-svn-id: svn://svn.chromium.org/blink/trunk@200902 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8b986593
......@@ -38,7 +38,6 @@ RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E
v8::Local<v8::Value> v8Body;
if (!DictionaryHelper::get(options, "body", v8Body) || v8Body->IsUndefined() || v8Body->IsNull())
return;
RefPtr<FormData> formData = FormData::create();
v8::Isolate* isolate = toIsolate(context);
if (v8Body->IsArrayBuffer()) {
body = FetchFormDataConsumerHandle::create(V8ArrayBuffer::toImpl(v8::Local<v8::Object>::Cast(v8Body)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment