From 2d6f7e74e1ededa95cf2bc9f6ea22e46a38401d8 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 6 Feb 2014 17:21:36 +0000 Subject: [PATCH] Issue #2187653 by ianthomas_uk: Remove comment_alphadecimal_to_int and comment_int_to_alphadecimal. --- core/modules/comment/comment.module | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 01c51da5560..1ee4ebce081 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -10,7 +10,6 @@ * book page, user etc. */ -use Drupal\Component\Utility\Number; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityChangedInterface; use Drupal\comment\CommentInterface; @@ -1542,34 +1541,6 @@ function _comment_per_page() { return drupal_map_assoc(array(10, 30, 50, 70, 90, 150, 200, 250, 300)); } -/** - * Generates a sorting code. - * - * Consists of a leading character indicating length, followed by N digits - * with a numerical value in base 36 (alphadecimal). These codes can be sorted - * as strings without altering numerical order. - * - * It goes: - * 00, 01, 02, ..., 0y, 0z, - * 110, 111, ... , 1zy, 1zz, - * 2100, 2101, ..., 2zzy, 2zzz, - * 31000, 31001, ... - * - * @deprecated Use \Drupal\Component\Utility\Number::intToAlphadecimal() instead. - */ -function comment_int_to_alphadecimal($i = 0) { - return Number::alphadecimalToInt($i); -} - -/** - * Decodes a sorting code back to an integer. - * - * @deprecated Use \Drupal\Component\Utility\Number::alphadecimalToInt() instead. - */ -function comment_alphadecimal_to_int($c = '00') { - return Number::alphadecimalToInt($c); -} - /** * Implements hook_ranking(). */