about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-03-01 02:08:38 +0000
committerEric Wong <e@80x24.org>2016-03-01 02:09:28 +0000
commitcb6cb8a6146c1f7a51b6eb0fe777311c9cc6a245 (patch)
tree510e9ed873e68a60c0e4b42143d8a4f1ed4e6f8b /lib
parentc3509baca0b103a0c9d034de06f3ddc5fc9426fd (diff)
downloadpublic-inbox-cb6cb8a6146c1f7a51b6eb0fe777311c9cc6a245.tar.gz
It's often not that much information and may be useful
to reduce HTTP requests a reader will want to make.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 6b81678a..de7bdf9c 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -254,17 +254,6 @@ sub index_walk {
         my ($fh, $part, $enc, $part_nr, $fhref, $more) = @_;
         my $s = add_text_body($enc, $part, $part_nr, $fhref);
 
-        if ($more) {
-                my $m = 0;
-                # drop the remainder of git patches, they're usually better
-                # to review when the full message is viewed
-                $s =~ s!^---+\n.*\z!!ms and $m = 1;
-
-                # Drop signatures
-                $s =~ s/^-- \n.*\z//ms and $m = 1;
-                $$more = "<b>More...</b>\n\n$$more" if $m;
-        }
-
         # kill any leading or trailing whitespace lines
         $s =~ s/^\s*$//sgm;
         $s =~ s/\s+\z//s;