projects
/
onis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad41998
)
Implemented ``del'' as required by the interface.
author
octo
<octo>
Sun, 10 Apr 2005 16:34:09 +0000
(16:34 +0000)
committer
octo
<octo>
Sun, 10 Apr 2005 16:34:09 +0000
(16:34 +0000)
lib/Onis/Data/Persistent/None.pm
patch
|
blob
|
history
diff --git
a/lib/Onis/Data/Persistent/None.pm
b/lib/Onis/Data/Persistent/None.pm
index
b9a7020
..
35a0dec
100644
(file)
--- a/
lib/Onis/Data/Persistent/None.pm
+++ b/
lib/Onis/Data/Persistent/None.pm
@@
-117,6
+117,17
@@
sub keys
}, @keys);
}
+sub del
+{
+ my $obj = shift;
+ my $key = shift;
+
+ if (defined ($obj->{'data'}{$key}))
+ {
+ delete ($obj->{'data'}{$key});
+ }
+}
+
=head1 AUTHOR
Florian octo Forster, L<octo@verplant.org>