summaryrefslogtreecommitdiffstats
path: root/gin/per_context_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gin/per_context_data.cc')
-rw-r--r--gin/per_context_data.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/gin/per_context_data.cc b/gin/per_context_data.cc
index 5fedf52..3960528 100644
--- a/gin/per_context_data.cc
+++ b/gin/per_context_data.cc
@@ -10,12 +10,6 @@
namespace gin {
-ContextSupplement::ContextSupplement() {
-}
-
-ContextSupplement::~ContextSupplement() {
-}
-
PerContextData::PerContextData(v8::Handle<v8::Context> context)
: runner_(NULL) {
context->SetAlignedPointerInEmbedderData(
@@ -23,21 +17,6 @@ PerContextData::PerContextData(v8::Handle<v8::Context> context)
}
PerContextData::~PerContextData() {
- DCHECK(supplements_.empty());
-}
-
-void PerContextData::Detach(v8::Handle<v8::Context> context) {
- DCHECK(From(context) == this);
- context->SetAlignedPointerInEmbedderData(
- kPerContextDataStartIndex + kEmbedderNativeGin, NULL);
-
- SuplementVector supplements;
- supplements.swap(supplements_);
-
- for (SuplementVector::iterator it = supplements.begin();
- it != supplements.end(); ++it) {
- (*it)->Detach(context);
- }
}
// static
@@ -46,8 +25,4 @@ PerContextData* PerContextData::From(v8::Handle<v8::Context> context) {
context->GetAlignedPointerFromEmbedderData(kEncodedValueIndex));
}
-void PerContextData::AddSupplement(scoped_ptr<ContextSupplement> supplement) {
- supplements_.push_back(supplement.release());
-}
-
} // namespace gin