From b451f90b4729949d4d2d8c2214776c230de73411 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 10 Mar 2012 02:14:33 +0000 Subject: [PATCH] ip2color() was never used --- core/util.inc.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index 5ebbb8d5..5f52d6fb 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -189,19 +189,6 @@ function show_ip($ip, $ban_reason) { return $ip; } -/** - * Turn an IP address into a colour, for easily spotting samefags - * - * NOTE: this should only be shown to admins, as it can be reversed - * to get an original IP address - */ -function ip2color($ip) { - $b = explode(".", $ip); - #return sprintf("#%02x%02x%02x", $b[0]/2, $b[1]/2, $b[2]/2); - return sprintf("hsl(%d, %d%%, %d%%)", $b[3]*360/256, $b[2]*100/256, $b[1]*100/256/2); -} - - /** * Different databases have different ways to represent booleans; this * will try and standardise them