Index: runtime/vm/dart_api_impl.h |
diff --git a/runtime/vm/dart_api_impl.h b/runtime/vm/dart_api_impl.h |
index 76b3abae27f2a92bebeb045c1b58d17eac6304b6..9e7cb5fd684b466731ed83b248518d85e45ea573 100644 |
--- a/runtime/vm/dart_api_impl.h |
+++ b/runtime/vm/dart_api_impl.h |
@@ -286,23 +286,6 @@ class Api : AllStatic { |
friend class ApiNativeScope; |
}; |
-class IsolateSaver { |
- public: |
- explicit IsolateSaver(Isolate* current_isolate) |
- : saved_isolate_(current_isolate) { |
- } |
- ~IsolateSaver() { |
- // TODO(koda): Audit users; they should know whether they're in an isolate. |
- if (saved_isolate_ != NULL) { |
- Thread::EnterIsolate(saved_isolate_); |
- } |
- } |
- private: |
- Isolate* saved_isolate_; |
- |
- DISALLOW_COPY_AND_ASSIGN(IsolateSaver); |
-}; |
- |
// Start a scope in which no Dart API call backs are allowed. |
#define START_NO_CALLBACK_SCOPE(thread) \ |
thread->IncrementNoCallbackScopeDepth() |