From 56de859f9a6a4e760c5ad8b941fcc138816f7931 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 25 Apr 2007 18:47:45 +0000 Subject: [PATCH] removed some unused legacy code git-svn-id: svn://svn.open-ils.org/ILS/trunk@7168 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../OpenILS/Application/Actor/Container.pm | 51 ---------------------- 1 file changed, 51 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm index 56065860cc..6f5412f5a6 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm @@ -229,57 +229,6 @@ sub bucket_create { __PACKAGE__->register_method( - method => "bucket_delete", - api_name => "open-ils.actor.container.delete", - notes => <<" NOTES"); - Deletes a bucket object. If requestor is different from - bucketOwner, requestor needs DELETE_CONTAINER permissions - PARAMS(authtoken, class, bucketId); - Returns the new bucket object - NOTES - -# XXX pretty sure no one actually uses this method, -# (see open-ils.actor.container.full_delete) -- should probably deprecate it -sub bucket_delete { - my( $self, $client, $authtoken, $class, $bucketid ) = @_; - my( $bucket, $evt ); - - my $e = new_editor(xact=>1, authtoken=>$authtoken); - return $e->event unless $e->checkauth; - - ( $bucket, $evt ) = $U->fetch_container_e($e, $bucketid, $class); - return $evt if $evt; - - return $e->event unless $e->allowed('DELETE_CONTAINER'); - - my $stat; - if( $class eq 'copy' ) { - return $e->event unless - $stat = $e->delete_container_copy_bucket($bucket); - } - - if( $class eq 'callnumber' ) { - return $e->event unless - $stat = $e->delete_container_call_number_bucket($bucket); - } - - if( $class eq 'biblio' ) { - return $e->event unless - $stat = $e->delete_container_biblio_record_entry_bucket($bucket); - } - - if( $class eq 'user') { - return $e->event unless - $stat = $e->delete_container_user_bucket($bucket); - } - - $e->commit; - return $stat; - -} - - -__PACKAGE__->register_method( method => "item_create", api_name => "open-ils.actor.container.item.create", notes => <<" NOTES"); -- 2.11.0