From 0c601b73125d1bc120e248149bf4d83ecc27f1c2 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 8 Apr 2008 11:19:34 +0000 Subject: * Removing lulurun's perl UGAI from core svn, pending a link to an external repository, as per mailing list discussion. --- share/perl/lib/OpenSim/AssetServer/AssetManager.pm | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 share/perl/lib/OpenSim/AssetServer/AssetManager.pm (limited to 'share/perl/lib/OpenSim/AssetServer/AssetManager.pm') diff --git a/share/perl/lib/OpenSim/AssetServer/AssetManager.pm b/share/perl/lib/OpenSim/AssetServer/AssetManager.pm deleted file mode 100644 index f36ab1a..0000000 --- a/share/perl/lib/OpenSim/AssetServer/AssetManager.pm +++ /dev/null @@ -1,34 +0,0 @@ -package OpenSim::AssetServer::AssetManager; - -use strict; -use Carp; -use OpenSim::Utility; -use OpenSim::AssetServer::Config; - - -sub getAssetByUUID { - my $uuid = shift; - my $result = &OpenSim::Utility::getSimpleResult($OpenSim::AssetServer::Config::SYS_SQL{select_asset_by_uuid}, $uuid); - my $count = @$result; - if ($count > 0) { - return $result->[0]; - } - Carp::croak("can not find asset($uuid)"); -} - -sub saveAsset { - my $asset = shift; - my $result = &OpenSim::Utility::getSimpleResult( - $OpenSim::AssetServer::Config::SYS_SQL{insert_asset}, - $asset->{id}, - $asset->{name}, - $asset->{description}, - $asset->{assetType}, - $asset->{invType}, - $asset->{"local"}, - $asset->{temporary}, - $asset->{data} - ); -} - -1; -- cgit v1.1