diff options
author | Matthew Ogilvie <mmogilvi_git@miniinfo.net> | 2012-10-13 23:42:18 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-16 16:16:23 -0700 |
commit | a86c0983d4cc49ac540141d1fcd51596f062ff15 (patch) | |
tree | 32490c1e1f210c21a93bbaf11bb09790976dc93e /git-cvsserver.perl | |
parent | d8574ff209d9c68674bd6ba3bcee4a7cdb699e61 (diff) | |
download | git-a86c0983d4cc49ac540141d1fcd51596f062ff15.tar.gz |
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>
Diffstat (limited to 'git-cvsserver.perl')
-rwxr-xr-x | git-cvsserver.perl | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl index cc39b6bfdd..8b2accba90 100755 --- a/git-cvsserver.perl +++ b/git-cvsserver.perl @@ -3440,19 +3440,6 @@ sub insert_head $insert_head->execute($name, $revision, $filehash, $commithash, $modified, $author, $mode); } -sub _headrev -{ - my $self = shift; - my $filename = shift; - my $tablename = $self->tablename("head"); - - my $db_query = $self->{dbh}->prepare_cached("SELECT filehash, revision, mode FROM $tablename WHERE name=?",{},1); - $db_query->execute($filename); - my ( $hash, $revision, $mode ) = $db_query->fetchrow_array; - - return ( $hash, $revision, $mode ); -} - sub _get_prop { my $self = shift; @@ -3512,6 +3499,8 @@ sub gethead =head2 getlog +See also gethistorydense(). + =cut sub getlog @@ -3597,25 +3586,6 @@ sub commitmessage return $message; } -=head2 gethistory - -This function takes a filename (with path) argument and returns an arrayofarrays -containing revision,filehash,commithash ordered by revision descending - -=cut -sub gethistory -{ - my $self = shift; - my $filename = shift; - my $tablename = $self->tablename("revision"); - - my $db_query; - $db_query = $self->{dbh}->prepare_cached("SELECT revision, filehash, commithash FROM $tablename WHERE name=? ORDER BY revision DESC",{},1); - $db_query->execute($filename); - - return $db_query->fetchall_arrayref; -} - =head2 gethistorydense 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 The 'dense' part is a reference to a '--dense' option available for git-rev-list and other git tools that depend on it. +See also getlog(). + =cut sub gethistorydense { |