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

Unified Diff: Source/modules/webmidi/MIDIOutputMap.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: drop some includes 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
« no previous file with comments | « Source/modules/webmidi/MIDIOutputMap.h ('k') | Source/modules/webmidi/MIDIOutputMap.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIOutputMap.cpp
diff --git a/Source/modules/webmidi/MIDIOutputMap.cpp b/Source/modules/webmidi/MIDIOutputMap.cpp
index fb6c4ec154778c662d0a26e2773e23a1fd073626..770ebcde848e947b413ec21d13765c5f04b4a04b 100644
--- a/Source/modules/webmidi/MIDIOutputMap.cpp
+++ b/Source/modules/webmidi/MIDIOutputMap.cpp
@@ -5,7 +5,6 @@
#include "config.h"
#include "modules/webmidi/MIDIOutputMap.h"
-#include "bindings/core/v8/ScriptState.h"
#include "bindings/modules/v8/V8MIDIOutput.h"
namespace blink {
@@ -15,12 +14,4 @@ MIDIOutputMap::MIDIOutputMap(HeapHashMap<String, Member<MIDIOutput>> map)
{
}
-ScriptValue MIDIOutputMap::getForBinding(ScriptState* scriptState, const String& id)
-{
- MIDIOutput* result = get(id);
- if (result)
- return ScriptValue(scriptState, toV8(result, scriptState->context()->Global(), scriptState->isolate()));
- return ScriptValue(scriptState, v8::Undefined(scriptState->isolate()));
-}
-
} // namespace blink
« no previous file with comments | « Source/modules/webmidi/MIDIOutputMap.h ('k') | Source/modules/webmidi/MIDIOutputMap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698