X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCDBICompat%2FLiveObjectIndex.pm;h=11238dc32cd66cbf7cb8b018c3c60bc607f9fd52;hb=c0fcc63f9a95819d353c5640ad2cc8d2b956ad63;hp=6c9602b6f452c975b7355863576ad7a04088411a;hpb=b52e9bf8ba1cd1fb4aa707615a6b2564de04cb8a;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm b/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm index 6c9602b..11238dc 100644 --- a/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm +++ b/lib/DBIx/Class/CDBICompat/LiveObjectIndex.pm @@ -1,4 +1,5 @@ -package DBIx::Class::CDBICompat::LiveObjectIndex; +package # hide from PAUSE + DBIx::Class::CDBICompat::LiveObjectIndex; use strict; use warnings; @@ -66,16 +67,4 @@ sub inflate_result { return $new; } -sub discard_changes { - my ($self) = @_; - if (my $key = $self->ID) { - $self->remove_from_object_index; - my $ret = $self->next::method; - $self->live_object_index->{$key} = $self if $self->in_storage; - return $ret; - } else { - return $self->next::method; - } -} - 1;