Skip to content
Snippets Groups Projects
Commit 2d6f7e74 authored by catch's avatar catch
Browse files

Issue #2187653 by ianthomas_uk: Remove comment_alphadecimal_to_int and comment_int_to_alphadecimal.

parent 1fe6c7ad
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment