projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change node disconnection code to improve node clearouts
[spider.git]
/
perl
/
LRU.pm
diff --git
a/perl/LRU.pm
b/perl/LRU.pm
index d53b115b55e2a52d417987a69802362c5238e3b1..d86c36d55a58ea1a82b7f292f8c885330fffec68 100644
(file)
--- a/
perl/LRU.pm
+++ b/
perl/LRU.pm
@@
-3,7
+3,7
@@
#
# Copyright (c) 2002 Dirk Koopman, Tobit Computer Co Ltd
#
#
# Copyright (c) 2002 Dirk Koopman, Tobit Computer Co Ltd
#
-#
$Id$
+#
#
# The structure of the objects stored are:-
#
#
# The structure of the objects stored are:-
#
@@
-26,12
+26,6
@@
use DXDebug;
use vars qw(@ISA);
@ISA = qw(Chain);
use vars qw(@ISA);
@ISA = qw(Chain);
-use vars qw($VERSION $BRANCH);
-$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
-$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
-$main::build += $VERSION;
-$main::branch += $BRANCH;
-
sub newbase
{
my $pkg = shift;
sub newbase
{
my $pkg = shift;
@@
-55,7
+49,7
@@
sub get
sub put
{
my ($self, $call, $ref) = @_;
sub put
{
my ($self, $call, $ref) = @_;
- confess("need a call and a reference") unless $call && $ref;
+ confess("need a call and a reference") unless
defined
$call && $ref;
my $p = $self->obj->{$call};
if ($p) {
# update the reference and rechain it
my $p = $self->obj->{$call};
if ($p) {
# update the reference and rechain it