Skip to content
Permalink
Browse files

Remove dead code from WebFilteredField

  • Loading branch information...
perlDreamer committed Oct 3, 2019
1 parent c4458a6 commit 0bb89079f314cdaff35244385a3519c22233234e
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Wing/Role/Result/WebFilteredField.pm
@@ -32,8 +32,6 @@ sub wing_webfiltered_field {
$class->meta->add_before_method_modifier($field => sub {
my ($self, $value) = @_;
if (defined $value) {
my @unsorted = split /\s+/, $value;
my @sorted = map {$_->[1]} sort {$a->[0] <=> $b->[0]} map {[length $_, $_]} @unsorted;
my $html = $value;
Wing::ContentFilter::format_html(\$html, exists $options->{format_html} ? $options->{format_html} : { entities => 1, with_markdown => $options->{use_markdown} });
Wing::ContentFilter::find_and_format_uris(\$html, exists $options->{find_and_format_uris} ? $options->{find_and_format_uris} : { youtube => 1, links => 1, images => 1, vimeo => 1});

0 comments on commit 0bb8907

Please sign in to comment.
You can’t perform that action at this time.