Index: src/runtime/runtime-symbol.cc |
diff --git a/src/runtime/runtime-symbol.cc b/src/runtime/runtime-symbol.cc |
index 8f99a37c42cb658336063b5ff9cbb498f9cd6181..03bd76ce27f9eff9dc75872acd7c22e9aedee793 100644 |
--- a/src/runtime/runtime-symbol.cc |
+++ b/src/runtime/runtime-symbol.cc |
@@ -30,27 +30,6 @@ RUNTIME_FUNCTION(Runtime_CreatePrivateSymbol) { |
} |
-RUNTIME_FUNCTION(Runtime_CreateGlobalPrivateSymbol) { |
- HandleScope scope(isolate); |
- DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(String, name, 0); |
- Handle<JSObject> registry = isolate->GetSymbolRegistry(); |
- Handle<String> part = isolate->factory()->private_intern_string(); |
- Handle<Object> privates; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, privates, |
- Object::GetProperty(registry, part)); |
- Handle<Object> symbol; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, symbol, |
- Object::GetProperty(privates, name)); |
- if (!symbol->IsSymbol()) { |
- DCHECK(symbol->IsUndefined()); |
- symbol = isolate->factory()->NewPrivateSymbol(name); |
- JSObject::AddProperty(Handle<JSObject>::cast(privates), name, symbol, NONE); |
- } |
- return *symbol; |
-} |
- |
- |
RUNTIME_FUNCTION(Runtime_SymbolDescription) { |
SealHandleScope shs(isolate); |
DCHECK(args.length() == 1); |