Skip to content

Commit

Permalink
Remove unused API lookup method
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Feb 9, 2018
1 parent 43d993d commit 13bf74d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Word.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,6 @@ public function halfRhymes()
return $this->rhymes(true);
}

private function wordInfo()
{
$cacheKey = $this->word.'.info';

$value = $this->cache->get($cacheKey);

if ($value) {
return $value;
}

$response = file_get_contents('http://rhymebrain.com/talk?function=getWordInfo&word='.urlencode($this->word));
$wordInfo = json_decode($response);

$this->cache->set($cacheKey, $wordInfo);

return $wordInfo;
}

public function syllables()
{
return Syllables::syllableCount($this->word);
Expand Down

0 comments on commit 13bf74d

Please sign in to comment.