private synchronized void deleteCommentInternal(final CommentingStrategy strategy,final IComment comment){
  Preconditions.checkNotNull(comment,"IE02542: comment argument can not be null");
  final List<IComment> currentComments=strategy.getComments();
  if (!currentComments.remove(comment)) {
    return;
  }
  strategy.saveComments(currentComments);
  commentIdToComment.remove(comment.getId());
  for (  final CommentListener listener : listeners) {
    try {
      strategy.sendDeletedCommentNotification(listener,comment);
    }
 catch (    final Exception exception) {
      CUtilityFunctions.logException(exception);
    }
  }
}

private synchronized void deleteCommentInternal ( final CommentingStrategy strategy , final IComment comment ) { Preconditions . checkNotNull ( comment , "IE02542: comment argument can not be null" ) ; final List < IComment > currentComments = strategy . getComments ( ) ; if ( ! currentComments . remove ( comment ) ) { return ; } strategy . saveComments ( currentComments ) ; commentIdToComment . remove ( comment . getId ( ) ) ; for ( final CommentListener listener : listeners ) { try { strategy . sendDeletedCommentNotification ( listener , comment ) ; } catch ( final Exception exception ) { CUtilityFunctions . logException ( exception ) ; } } }
this function is used when notification from the database are received that a comment has been deleted . therefore the comment only needs to be removed from the data structures in the comment manager as it has already been removed from the database .
