Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1374)

Unified Diff: Source/modules/webmidi/MIDIInputMap.cpp

Issue 920713002: Add Maplike<> utility mixin class for implementing maplike interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-iterable-etc-typedefs
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/webmidi/MIDIInputMap.cpp
diff --git a/Source/modules/webmidi/MIDIInputMap.cpp b/Source/modules/webmidi/MIDIInputMap.cpp
index f6c72062e1992ff957d8ae7bf7b21174dbaa12fa..00b1505d3ba0bb02c171132f79a86f1220d25df4 100644
--- a/Source/modules/webmidi/MIDIInputMap.cpp
+++ b/Source/modules/webmidi/MIDIInputMap.cpp
@@ -15,13 +15,5 @@ MIDIInputMap::MIDIInputMap(const HeapHashMap<String, Member<MIDIInput>> map)
{
}
-ScriptValue MIDIInputMap::getForBinding(ScriptState* scriptState, const String& id)
-{
- MIDIInput* result = get(id);
- if (result)
- return ScriptValue(scriptState, toV8(result, scriptState->context()->Global(), scriptState->isolate()));
- return ScriptValue(scriptState, v8::Undefined(scriptState->isolate()));
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698