Skip to content

Commit db9d9cc

Browse files
authored
ext/uri: Remove dead Uri\WhatWg\Url::getFragment() method implementation (#23303)
https://github.com/php/php-src/pull/18836/changes#diff-36685c80eb4c9b461c87f9f56845f1ad5f166f7e26d4e783b0511a1c670d8172R177 registered Uri\WhatWg\Url::getFragment() as an "implementation-alias", then https://github.com/php/php-src/pull/19636/changes#diff-80838f0d9bf6078a847dbafc2fff787d67013a7f19461cb6508246b5413fb4dfR900 added other aliases but also added the `getFragment()` method implementation back without removing its alias, which left it unused. So I am once again removing it here.
1 parent 5e58399 commit db9d9cc

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

ext/uri/php_uri.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,6 @@ PHP_METHOD(Uri_WhatWg_Url, getHostType)
968968
php_uri_parser_whatwg_host_type_read(uri_object->uri, return_value);
969969
}
970970

971-
PHP_METHOD(Uri_WhatWg_Url, getFragment)
972-
{
973-
php_uri_property_read_helper(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_URI_PROPERTY_NAME_FRAGMENT, PHP_URI_COMPONENT_READ_MODE_NORMALIZED_UNICODE);
974-
}
975-
976971
PHP_METHOD(Uri_WhatWg_Url, equals)
977972
{
978973
zend_object *that_object;

0 commit comments

Comments
 (0)