Index: src/extensions/gc-extension.cc |
diff --git a/src/extensions/gc-extension.cc b/src/extensions/gc-extension.cc |
index 205587f41cbf10e0f76efd01483b96042782cf8c..1b5fb5d8c47768e00d85ccf8b20f5da95decc817 100644 |
--- a/src/extensions/gc-extension.cc |
+++ b/src/extensions/gc-extension.cc |
@@ -50,18 +50,4 @@ void GCExtension::GC(const v8::FunctionCallbackInfo<v8::Value>& args) { |
} |
} |
- |
-void GCExtension::Register() { |
- static char buffer[50]; |
- Vector<char> temp_vector(buffer, sizeof(buffer)); |
- if (FLAG_expose_gc_as != NULL && strlen(FLAG_expose_gc_as) != 0) { |
- OS::SNPrintF(temp_vector, "native function %s();", FLAG_expose_gc_as); |
- } else { |
- OS::SNPrintF(temp_vector, "native function gc();"); |
- } |
- |
- static GCExtension gc_extension(buffer); |
- static v8::DeclareExtension declaration(&gc_extension); |
-} |
- |
} } // namespace v8::internal |