Skip to content

Commit

Permalink
Remove useless private helper
Browse files Browse the repository at this point in the history
  • Loading branch information
erwan committed Jan 14, 2015
1 parent 9c64fbf commit 232c1ce
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Prismic/SearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,16 +285,6 @@ private function url()
return $url;
}

/**
* Get the cache key for this form
*
* @return string the cache key
*/
private function cache_key()
{
return $this->url();
}

/**
* Checks if the results for this form are already cached
*
Expand All @@ -304,7 +294,7 @@ private function cache_key()
*/
public function isCached()
{
return $this->api->getCache()->has($this->cache_key());
return $this->api->getCache()->has($this->url());
}

/**
Expand All @@ -320,7 +310,7 @@ private function submit_raw()
$this->form->getAction()
) {
$url = $this->url();
$cacheKey = $this->cache_key();
$cacheKey = $this->url();

$response = $this->api->getCache()->get($cacheKey);

Expand Down

0 comments on commit 232c1ce

Please sign in to comment.