aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Index/Generic.pm
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2007-11-27 01:10:58 +0100
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2007-11-27 01:10:58 +0100
commit77f76725888920d10b527db5f291d704f0f5b26d (patch)
tree1c0e1874bcdc90352548f5125cbdb96643aa5002 /lib/LXRng/Index/Generic.pm
parent5c682b22600bbd08888af07f93422c1cd733609d (diff)
Rework usage stats.
Diffstat (limited to 'lib/LXRng/Index/Generic.pm')
-rw-r--r--lib/LXRng/Index/Generic.pm7
1 files changed, 3 insertions, 4 deletions
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) = @_;