Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
2d6f7e74
Commit
2d6f7e74
authored
11 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
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
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/comment/comment.module
+0
-29
0 additions, 29 deletions
core/modules/comment/comment.module
with
0 additions
and
29 deletions
core/modules/comment/comment.module
+
0
−
29
View file @
2d6f7e74
...
...
@@ -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().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment