Browse Source

Merge pull request #6141 from cakephp/josegonzalez-patch-2

Remove unused method
Mark Story 11 years ago
parent
commit
5c4d1d788b
2 changed files with 0 additions and 20 deletions
  1. 0 10
      src/Utility/Security.php
  2. 0 10
      tests/TestCase/Utility/SecurityTest.php

+ 0 - 10
src/Utility/Security.php

@@ -48,16 +48,6 @@ class Security
     protected static $_instance;
 
     /**
-     * Generate authorization hash.
-     *
-     * @return string Hash
-     */
-    public static function generateAuthKey()
-    {
-        return Security::hash(Text::uuid());
-    }
-
-    /**
      * Create a hash from string using given method.
      *
      * @param string $string String to hash

+ 0 - 10
tests/TestCase/Utility/SecurityTest.php

@@ -27,16 +27,6 @@ class SecurityTest extends TestCase
 {
 
     /**
-     * testGenerateAuthkey method
-     *
-     * @return void
-     */
-    public function testGenerateAuthkey()
-    {
-        $this->assertEquals(strlen(Security::generateAuthKey()), 40);
-    }
-
-    /**
      * testHash method
      *
      * @return void