From: sboyette Date: Fri, 28 Aug 2009 20:31:28 +0000 (+0000) Subject: removing _json_hint_to_class X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4fc3bf5ac996f59eeb46083c4de9372d99905f78;p=working%2FOpenSRF.git removing _json_hint_to_class git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1757 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/perl/lib/OpenSRF/Utils/JSON.pm b/src/perl/lib/OpenSRF/Utils/JSON.pm index 0c28518..06b7bcd 100644 --- a/src/perl/lib/OpenSRF/Utils/JSON.pm +++ b/src/perl/lib/OpenSRF/Utils/JSON.pm @@ -178,18 +178,4 @@ sub false { return $parser->false(); } -sub _json_hint_to_class { - my $type = shift; - my $hint = shift; - - return $_class_map{hints}{$hint}{name} if (exists $_class_map{hints}{$hint}); - - $type = 'hash' if ($type eq '}'); - $type = 'array' if ($type eq ']'); - - OpenSRF::Utils::JSON->register_class_hint(name => $hint, hint => $hint, type => $type); - - return $hint; -} - 1;