cvsserver: remove unused functions _headrev and gethistory

Remove: - _headrev() - It uses similar functionality from getmeta() and gethead(). - gethistory() - It uses similar functions gethistorydense() and getlog(). Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matthew Ogilvie committed Oct 13, 2012 at 23:42 UTC a86c0983d4cc49ac540141d1fcd51596f062ff15
1 file changed +4 -32
git-cvsserver.perl
+4 -32
@@ -3440,19 +3440,6 @@ sub insert_head
3440 $insert_head->execute($name, $revision, $filehash, $commithash, $modified, $author, $mode);
3441 }
3442
3443 -sub _headrev
3444 -{
3445 - my $self = shift;
3446 - my $filename = shift;
3447 - my $tablename = $self->tablename("head");
3448 -
3449 - my $db_query = $self->{dbh}->prepare_cached("SELECT filehash, revision, mode FROM $tablename WHERE name=?",{},1);
3450 - $db_query->execute($filename);
3451 - my ( $hash, $revision, $mode ) = $db_query->fetchrow_array;
3452 -
3453 - return ( $hash, $revision, $mode );
3454 -}
3455 -
3443 sub _get_prop
3444 {
3445 my $self = shift;
@@ -3512,6 +3499,8 @@ sub gethead
3499
3500 =head2 getlog
3501
3502 +See also gethistorydense().
3503 +
3504 =cut
3505
3506 sub getlog
@@ -3597,25 +3586,6 @@ sub commitmessage
3586 return $message;
3587 }
3588
3600 -=head2 gethistory
3601 -
3602 -This function takes a filename (with path) argument and returns an arrayofarrays
3603 -containing revision,filehash,commithash ordered by revision descending
3604 -
3605 -=cut
3606 -sub gethistory
3607 -{
3608 - my $self = shift;
3609 - my $filename = shift;
3610 - my $tablename = $self->tablename("revision");
3611 -
3612 - my $db_query;
3613 - $db_query = $self->{dbh}->prepare_cached("SELECT revision, filehash, commithash FROM $tablename WHERE name=? ORDER BY revision DESC",{},1);
3614 - $db_query->execute($filename);
3615 -
3616 - return $db_query->fetchall_arrayref;
3617 -}
3618 -
3589 =head2 gethistorydense
3590
3591 This function takes a filename (with path) argument and returns an arrayofarrays
@@ -3625,6 +3595,8 @@ This version of gethistory skips deleted entries -- so it is useful for annotate
3595 The 'dense' part is a reference to a '--dense' option available for git-rev-list
3596 and other git tools that depend on it.
3597
3598 +See also getlog().
3599 +
3600 =cut
3601 sub gethistorydense
3602 {