Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 3b2c9909bb8e537c09fed4fdd8cb26881dea3b58..0dbebc14e564aa93c441a0eb7d38bacea217de02 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1715,15 +1715,6 @@ MaybeLocal<UnboundScript> ScriptCompiler::CompileUnboundInternal( |
PREPARE_FOR_EXECUTION_WITH_ISOLATE( |
isolate, "v8::ScriptCompiler::CompileUnbound()", UnboundScript); |
- // Support the old API for a transition period: |
- // - kProduceToCache -> kProduceParserCache |
- // - kNoCompileOptions + cached_data != NULL -> kConsumeParserCache |
- if (options == kProduceDataToCache) { |
- options = kProduceParserCache; |
- } else if (options == kNoCompileOptions && source->cached_data) { |
- options = kConsumeParserCache; |
- } |
- |
// Don't try to produce any kind of cache when the debugger is loaded. |
if (isolate->debug()->is_loaded() && |
(options == kProduceParserCache || options == kProduceCodeCache)) { |