about summary refs log tree commit homepage
path: root/lib/PublicInbox/Address.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-25 10:56:59 +0000
committerEric Wong <e@80x24.org>2016-06-25 10:56:59 +0000
commit13eda978e8937065575623d045f78592cbb6d022 (patch)
tree34dea0c86802f8808b18a2d70fafb5f23000c740 /lib/PublicInbox/Address.pm
parentdde6d1169d8f9d6aaede9730144d1f60be2134c8 (diff)
downloadpublic-inbox-13eda978e8937065575623d045f78592cbb6d022.tar.gz
Address::names is sufficient to handle what from_name did.
Diffstat (limited to 'lib/PublicInbox/Address.pm')
-rw-r--r--lib/PublicInbox/Address.pm14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm
index abba43d1..cd5fbfbe 100644
--- a/lib/PublicInbox/Address.pm
+++ b/lib/PublicInbox/Address.pm
@@ -20,18 +20,4 @@ sub names {
         } split(/\@+[\w\.\-]+>?\s*(?:,\s*|\z)/, $_[0]);
 }
 
-sub from_name {
-        my ($val) = @_;
-        my $name = $val;
-        $name =~ s/\s*\S+\@\S+\s*\z//;
-        if ($name !~ /\S/ || $name =~ /[<>]/) { # git does not like [<>]
-                ($name) = emails($val);
-                $name =~ s/\@.*//;
-        }
-        $name =~ tr/\r\n\t/ /;
-        $name =~ s/\A['"\s]*//;
-        $name =~ s/['"\s]*\z//;
-        $name;
-}
-
 1;