Skip to content

Commit

Permalink
Merge pull request #6141 from cakephp/josegonzalez-patch-2
Browse files Browse the repository at this point in the history
Remove unused method
  • Loading branch information
markstory committed Apr 2, 2015
2 parents c3602bb + 4e0f246 commit 5c4d1d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/Utility/Security.php
Expand Up @@ -47,16 +47,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.
*
Expand Down
10 changes: 0 additions & 10 deletions tests/TestCase/Utility/SecurityTest.php
Expand Up @@ -26,16 +26,6 @@
class SecurityTest extends TestCase
{

/**
* testGenerateAuthkey method
*
* @return void
*/
public function testGenerateAuthkey()
{
$this->assertEquals(strlen(Security::generateAuthKey()), 40);
}

/**
* testHash method
*
Expand Down

0 comments on commit 5c4d1d7

Please sign in to comment.