Skip to content

Commit

Permalink
Remove deprecated documentation helper
Browse files Browse the repository at this point in the history
Change-Id: I082a472df4a2d7be7d45979e4e20aa0c6f384fbf
  • Loading branch information
Akron committed Jun 12, 2024
1 parent e71bd6d commit 324cfd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 57 deletions.
7 changes: 6 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
0.55 2024-06-11
0.55 2024-06-12
- Removed deprecated doc_link_to helper. (diewald)
- Removed deprecated doc_ext_link_to helper. (diewald)
- Removed deprecated doc_uc helper. (diewald)
- Removed deprecated doc_navi helper. (diewald)
- Removed deprecated doc->url helper. (diewald)
- Correctly propagate warnings in frontend calls. (diewald)

0.54 2024-06-10
Expand Down
58 changes: 2 additions & 56 deletions lib/Kalamar/Plugin/KalamarPages.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ sub register {
}
);

# DEPRECATED: 2019-10-17
$mojo->helper(
doc_link_to => sub {
my $c = shift;
deprecated 'Deprecated "doc_link_to" in favor of "embedded_link_to"';
return $c->embedded_link_to('doc', @_)
}
);

# Link to an external page
$mojo->helper(
ext_link_to => sub {
Expand All @@ -71,15 +62,6 @@ sub register {
}
);

# DEPRECATED: 2019-10-17
$mojo->helper(
doc_ext_link_to => sub {
my $c = shift;
deprecated 'Deprecated "doc_ext_link_to" in favor of "ext_link_to"';
return $c->ext_link_to(@_);
}
);

# Page alert - Under Construction!
$mojo->helper(
under_construction => sub {
Expand All @@ -88,16 +70,6 @@ sub register {
}
);

# Page alert - Under Construction!
# DEPRECATED: 2019-10-17
$mojo->helper(
doc_uc => sub {
my $c = shift;
deprecated 'Deprecated "doc_uc" in favor of "under_construction"';
return $c->under_construction
}
);

# Page title helper
$mojo->helper(
page_title => sub {
Expand All @@ -124,32 +96,6 @@ sub register {
}
);


# DEPRECATED: 2019-10-24
$mojo->helper(
'doc.url' => sub {
deprecated 'Deprecated "doc->url" in favor of direct usage with "url_with"';
my $c = shift;
my $page = pop;
my $scope = shift;
return $c->url_with(
'doc',
page => $page,
scope => $scope
);
}
);

# Documentation navigation helper
# DEPRECATED: 2019-10-24
$mojo->helper(
doc_navi => sub {
deprecated 'Deprecated "docnavi" in favor of "navigation"';
my $c = shift;
return $c->navigation('doc', @_)
}
);

# Navigation helper
$mojo->helper(
'navigation' => sub {
Expand Down Expand Up @@ -363,10 +309,10 @@ Create a link to the documentation. Accepts a realm, a title, a scope, and a pag
Creates a link to an external page, that will be opened in the top frame,
in case it's in an embedded frame.
=head2 doc_uc
=head2 doc_under_construction
%# In templates
%= doc_uc
%= doc_under_construction
Generates an C<Under Construction> notification.
Expand Down

0 comments on commit 324cfd6

Please sign in to comment.