From 77f76725888920d10b527db5f291d704f0f5b26d Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Tue, 27 Nov 2007 01:10:58 +0100 Subject: Rework usage stats. --- lib/LXRng/Index/Generic.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/LXRng/Index/Generic.pm') diff --git a/lib/LXRng/Index/Generic.pm b/lib/LXRng/Index/Generic.pm index cab2513..1cdaab5 100644 --- a/lib/LXRng/Index/Generic.pm +++ b/lib/LXRng/Index/Generic.pm @@ -144,13 +144,12 @@ sub symbols_by_file { } sub add_usage { - my ($self, $file_id, $line, $symbol) = @_; + my ($self, $doc, $file_id, $sym_id, $lines) = @_; - my $sym_id = $self->symbol_id($symbol, 1); - - return $self->_add_usage($file_id, $line, $sym_id); + return $self->_add_usage($file_id, $sym_id, $lines); } +# TODO: What functionality actually uses this? Can it be removed? sub usage_by_file { my ($self, $tree, $release, $path) = @_; -- cgit v1.2.3