aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Index/Generic.pm
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2007-12-04 08:45:41 +0100
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2007-12-04 08:45:41 +0100
commit15f50e9ba5f64594ac610ad42ac75e484147f8a2 (patch)
tree7de2a7e6bcee6dd6b369c4cb3b6a6aaf512eff35 /lib/LXRng/Index/Generic.pm
parent8c290c3b917b1683a8f4355019366d45d5ddb42f (diff)
Add file search caps, some tuning.
Diffstat (limited to 'lib/LXRng/Index/Generic.pm')
-rw-r--r--lib/LXRng/Index/Generic.pm11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/LXRng/Index/Generic.pm b/lib/LXRng/Index/Generic.pm
index c756b5f..dfeb754 100644
--- a/lib/LXRng/Index/Generic.pm
+++ b/lib/LXRng/Index/Generic.pm
@@ -102,11 +102,6 @@ sub includes_by_file {
return $self->_includes_by_id($file_id);
}
-#sub add_symbol {
-# my ($self, $file_id, $line, $symbol, $type, $ctx_id) = @_;
-# return $self->_add_symbol($file_id, $line, $symbol, $type, $ctx_id);
-#}
-
sub add_ident {
my ($self, $rfile_id, $line, $symbol, $type, $ctx_id) = @_;
@@ -121,14 +116,12 @@ sub symbol_by_id {
return $self->_symbol_by_id($id);
}
-sub symbols_by_name {
+sub identifiers_by_name {
my ($self, $tree, $release, $symbol) = @_;
my $rel_id = $self->release_id($tree, $release);
-# return $cache_sym{$rel_id}{$symbol} if
-# exists $cache_sym{$rel_id} and exists $cache_sym{$rel_id}{$symbol};
+
return $self->_identifiers_by_name($rel_id, $symbol);
-# $cache_sym{$rel_id}{$symbol} = $id;
}
sub symbols_by_file {