OSDN Git Service

Simplify sha1(). KISS
authorhenoheno <henoheno>
Thu, 4 May 2006 09:30:58 +0000 (18:30 +0900)
committerhenoheno <henoheno>
Thu, 4 May 2006 09:30:58 +0000 (18:30 +0900)
lib/func.php

index 35d970a..1d005c5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: func.php,v 1.71 2006/04/25 13:37:34 henoheno Exp $
+// $Id: func.php,v 1.72 2006/05/04 09:30:58 henoheno Exp $
 // Copyright (C)
 //   2002-2006 PukiWiki Developers Team
 //   2001-2002 Originally written by yu-ji
@@ -756,11 +756,6 @@ if (! function_exists('sha1')) {
                {
                        return bin2hex(mhash(MHASH_SHA1, $str));
                }
-       } else {
-               function sha1($str, $raw_output = FALSE)
-               {
-                       die('Function sha1() not found and extension \'mhash\' not exists');
-               }
        }
 }
 ?>