diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 0d3d736619ec1618efdefe7ca52b2fba39337482..fa3cd763e8c9dcd2ced2a41318fca726801bd84f 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -956,27 +956,6 @@ function comment_user_predelete($account) { entity_delete_multiple('comment', $cids); } -/** - * Loads the entire comment by comment ID. - * - * @param int $cid - * The ID of the comment to be loaded. - * @param bool $reset - * (optional) Whether to reset the internal static entity cache. - * - * @return \Drupal\comment\CommentInterface - * The comment object. - * - * @deprecated in Drupal 8.x, will be removed before Drupal 9.0. - * Use \Drupal\comment\Entity\Comment::load(). - */ -function comment_load($cid, $reset = FALSE) { - if ($reset) { - \Drupal::entityManager()->getStorage('comment')->resetCache(array($cid)); - } - return Comment::load($cid); -} - /** * Gets the number of new comments for the current user and the specified node. *