Skip to content

Commit

Permalink
♻️ ⚰️ uri is deprecated #52
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Nov 30, 2022
1 parent f0dd4ae commit 02742f2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/URI.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ has Authority $.authority is rw;
has Query $.query = Query.new('');
has Fragment $.fragment is rw = '';
has %!query-form; # cache query-form
has $!uri; # use of this now deprecated

method parse(URI:D: Str() $str, Bool :$match-prefix = $!match-prefix) {

Expand All @@ -86,7 +85,6 @@ method parse(URI:D: Str() $str, Bool :$match-prefix = $!match-prefix) {
$!path = Path.new;
$!query.query('');
$!fragment = '';
$!uri = Mu;

$!match-prefix = $match-prefix;
if $!match-prefix {
Expand All @@ -101,9 +99,6 @@ method parse(URI:D: Str() $str, Bool :$match-prefix = $!match-prefix) {
X::URI::Invalid.new(source => $str).throw
}

# now deprecated
$!uri = $!grammar.parse-result;

my $comp_container = $!grammar.parse-result<URI-reference><URI> ||
$!grammar.parse-result<URI-reference><relative-ref>;

Expand Down Expand Up @@ -437,10 +432,6 @@ method chunks() is DEPRECATED("method segments") {
$!path.segments;
}

method uri() is DEPRECATED("parse-result") {
$!uri;
}

multi method query-form() { $!query }

multi method query-form(|c) { $!query.query-form(|c) }
Expand Down

0 comments on commit 02742f2

Please sign in to comment.