Remove unused 'best color' algorithm.

This code is used to efficiently determine the most saturated colour in an image,
Kabuki uses this as the highlight colour on a page, but this styling has always
been disabled in HashRU Pics. Hence, we can safely remove the code, freeing up
some CPU cycles in the process. ;-)
This commit is contained in:
2019-09-29 14:16:50 +02:00
parent 7d3ab166c7
commit 5df7ea8371
4 changed files with 2 additions and 194 deletions

View File

@@ -35,12 +35,8 @@ class AlbumIndex extends SubTemplate
foreach ($photos as $album)
{
$color = isset($album['thumbnail']) ? $album['thumbnail']->bestColor() : 'ccc';
if ($color == 'FFFFFF')
$color = 'ccc';
echo '
<div class="landscape" style="border-color: #', $color, '">';
<div class="landscape">';
if ($this->show_edit_buttons)
echo '