From 342600cb405acf3bb0d01816b87fe008cb0cfc7a Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 15 Jan 2012 12:02:54 -0500 Subject: [PATCH] This code is not used in the master branch. Moved into separate branch 'revert_by_ip'. --- contrib/tag_history/main.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/contrib/tag_history/main.php b/contrib/tag_history/main.php index ce2b9249..dfe15c5b 100644 --- a/contrib/tag_history/main.php +++ b/contrib/tag_history/main.php @@ -180,30 +180,6 @@ class Tag_History implements Extension { return ($row ? $row : array()); } - /* This doesn't actually get _ALL_ IPs as it limits to 1000. */ - public function get_all_user_ips() - { - global $database; - $row = $database->get_all(" - SELECT DISTINCT user_ip - FROM tag_histories - ORDER BY tag_histories.user_ip DESC - LIMIT 1000"); - return ($row ? $row : array()); - } - - public function process_revert_all_changes_by_ip($ip) - { - global $database; - /* - -SELECT * FROM `tag_histories` WHERE image_id IN -( select image_id from `tag_histories` where user_ip="216.240.14.185" and date_set >= 2011-10-23) -ORDER BY image_id, date_set - - */ - } - /* * this function is called when an image has been deleted */