Remove unused methods
This commit is contained in:
parent
e072182ed4
commit
0980d0a82f
2 changed files with 6 additions and 27 deletions
25
db.php
25
db.php
|
@ -163,31 +163,6 @@ class DataBase
|
|||
return $words;
|
||||
}
|
||||
|
||||
public function getWordsPercentage(string $id)
|
||||
{
|
||||
$words = $this->getWordsList($id);
|
||||
$total = 0;
|
||||
foreach ($words as $word) {
|
||||
$total += $word[1];
|
||||
}
|
||||
foreach ($words as $key => $word) {
|
||||
$words[$key] = array($word[0], $word[1] / $total);
|
||||
}
|
||||
|
||||
return $words;
|
||||
}
|
||||
|
||||
public function getWordsRelative(string $id)
|
||||
{
|
||||
$words = $this->getWordsList($id);
|
||||
$wordsClean = [];
|
||||
foreach ($words as $key => $word) {
|
||||
$wordsClean[] = array($word['word'], $word['relative']);
|
||||
}
|
||||
|
||||
return $wordsClean;
|
||||
}
|
||||
|
||||
public function createCloud(
|
||||
string $ref,
|
||||
string $text = '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue