From fcd963fcf1a72c5237739aa035be5d2f3bfa6ca8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 20 Apr 2005 00:55:09 +0000 Subject: Bug 272623: FindWrapPoint is misplaced in process_bug.cgi - Patch by Frédéric Buclin r=mkanat a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process_bug.cgi | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 6f8303154..b62271e8b 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1151,25 +1151,6 @@ sub SnapShotDeps { my $timestamp; my $bug_changed; -sub FindWrapPoint { - my ($string, $startpos) = @_; - if (!$string) { return 0 } - if (length($string) < $startpos) { return length($string) } - my $wrappoint = rindex($string, ",", $startpos); # look for comma - if ($wrappoint < 0) { # can't find comma - $wrappoint = rindex($string, " ", $startpos); # look for space - if ($wrappoint < 0) { # can't find space - $wrappoint = rindex($string, "-", $startpos); # look for hyphen - if ($wrappoint < 0) { # can't find hyphen - $wrappoint = $startpos; # just truncate it - } else { - $wrappoint++; # leave hyphen on the left side - } - } - } - return $wrappoint; -} - sub LogDependencyActivity { my ($i, $oldstr, $target, $me, $timestamp) = (@_); my $sql_timestamp = SqlQuote($timestamp); -- cgit v1.2.3-24-g4f1b