From 559c6c88e81e40d65f68f97044c5a32a114dcbfc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Sep 2015 02:18:07 +0000 Subject: consolidate thread sorting in view This is a display subroutine so it should not be in our thread monkey-patching package, but instead in the view package. Hopefully one day in the future, Mail::Thread will be maintained again and we'll no longer need PublicInbox::Thread at all. --- lib/PublicInbox/Thread.pm | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/PublicInbox/Thread.pm') diff --git a/lib/PublicInbox/Thread.pm b/lib/PublicInbox/Thread.pm index a3dedf54..781fffff 100644 --- a/lib/PublicInbox/Thread.pm +++ b/lib/PublicInbox/Thread.pm @@ -17,13 +17,6 @@ if ($Mail::Thread::VERSION <= 2.55) { eval q(sub _container_class { 'PublicInbox::Thread::Container' }); } -sub sort_ts { - sort { - (eval { $a->topmost->message->header('X-PI-TS') } || 0) <=> - (eval { $b->topmost->message->header('X-PI-TS') } || 0) - } @_; -} - package PublicInbox::Thread::Container; use strict; use warnings; -- cgit v1.2.3-24-ge0c7