develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35902 - trunk/src

From:
chromatic
Date:
January 22, 2009 16:54
Subject:
[svn:parrot] r35902 - trunk/src
Message ID:
20090123005419.8DF64CB9AE@x12.develooper.com
Author: chromatic
Date: Thu Jan 22 16:54:18 2009
New Revision: 35902

Modified:
   trunk/src/hash.c

Log:
[src] Removed some useless code from parrot_hash_size() as the hash parameter
is a NOTNULL parameter.

Modified: trunk/src/hash.c
==============================================================================
--- trunk/src/hash.c	(original)
+++ trunk/src/hash.c	Thu Jan 22 16:54:18 2009
@@ -1176,11 +1176,7 @@
 {
     ASSERT_ARGS(parrot_hash_size)
 
-    if (hash)
-        return hash->entries;
-
-    Parrot_ex_throw_from_c_args(interp, NULL, 1,
-        "parrot_hash_size asked to check a NULL hash\n");
+    return hash->entries;
 }
 
 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About