Skip to content

Commit 13bf74d

Browse files
committed
Remove unused API lookup method
1 parent 43d993d commit 13bf74d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Word.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,6 @@ public function halfRhymes()
7070
return $this->rhymes(true);
7171
}
7272

73-
private function wordInfo()
74-
{
75-
$cacheKey = $this->word.'.info';
76-
77-
$value = $this->cache->get($cacheKey);
78-
79-
if ($value) {
80-
return $value;
81-
}
82-
83-
$response = file_get_contents('http://rhymebrain.com/talk?function=getWordInfo&word='.urlencode($this->word));
84-
$wordInfo = json_decode($response);
85-
86-
$this->cache->set($cacheKey, $wordInfo);
87-
88-
return $wordInfo;
89-
}
90-
9173
public function syllables()
9274
{
9375
return Syllables::syllableCount($this->word);

0 commit comments

Comments
 (0)