@@ -1824,13 +1824,6 @@ void DomainToUnicode(const FunctionCallbackInfo<Value>& args) {
1824
1824
String::NewFromUtf8 (env->isolate (), out.c_str ()).ToLocalChecked ());
1825
1825
}
1826
1826
1827
- void SetURLConstructor (const FunctionCallbackInfo<Value>& args) {
1828
- Environment* env = Environment::GetCurrent (args);
1829
- CHECK_EQ (args.Length (), 1 );
1830
- CHECK (args[0 ]->IsFunction ());
1831
- env->set_url_constructor_function (args[0 ].As <Function>());
1832
- }
1833
-
1834
1827
void Initialize (Local<Object> target,
1835
1828
Local<Value> unused,
1836
1829
Local<Context> context,
@@ -1839,7 +1832,6 @@ void Initialize(Local<Object> target,
1839
1832
SetMethodNoSideEffect (context, target, " encodeAuth" , EncodeAuthSet);
1840
1833
SetMethodNoSideEffect (context, target, " domainToASCII" , DomainToASCII);
1841
1834
SetMethodNoSideEffect (context, target, " domainToUnicode" , DomainToUnicode);
1842
- SetMethod (context, target, " setURLConstructor" , SetURLConstructor);
1843
1835
1844
1836
#define XX (name, _ ) NODE_DEFINE_CONSTANT(target, name);
1845
1837
FLAGS (XX)
@@ -1856,7 +1848,6 @@ void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
1856
1848
registry->Register (EncodeAuthSet);
1857
1849
registry->Register (DomainToASCII);
1858
1850
registry->Register (DomainToUnicode);
1859
- registry->Register (SetURLConstructor);
1860
1851
}
1861
1852
1862
1853
std::string URL::ToFilePath () const {
0 commit comments