Skip to content

Commit a86c098

Browse files
Matthew Ogilviegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d8574ff commit a86c098

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

git-cvsserver.perl

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3440,19 +3440,6 @@ sub insert_head
34403440
$insert_head->execute($name, $revision, $filehash, $commithash, $modified, $author, $mode);
34413441
}
34423442

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-
34563443
sub _get_prop
34573444
{
34583445
my $self = shift;
@@ -3512,6 +3499,8 @@ sub gethead
35123499

35133500
=head2 getlog
35143501
3502+
See also gethistorydense().
3503+
35153504
=cut
35163505

35173506
sub getlog
@@ -3597,25 +3586,6 @@ sub commitmessage
35973586
return $message;
35983587
}
35993588

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-
36193589
=head2 gethistorydense
36203590
36213591
This function takes a filename (with path) argument and returns an arrayofarrays
@@ -3625,6 +3595,8 @@ =head2 gethistorydense
36253595
The 'dense' part is a reference to a '--dense' option available for git-rev-list
36263596
and other git tools that depend on it.
36273597
3598+
See also getlog().
3599+
36283600
=cut
36293601
sub gethistorydense
36303602
{

0 commit comments

Comments
 (0)