Remove unnecessary code

Created on 1 July 2023, about 1 year ago
Updated 10 July 2023, about 1 year ago

I have removed some unnecessary code.

📌 Task
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

  • Issue created by @sonam_sharma
  • Issue was unassigned.
  • Status changed to Needs work about 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what should be fixed/changed. A sentence like I have removed some unnecessary code is not a sufficient description. Why is the code unnecessary? What is this issue trying to resolve?

  • Status changed to Closed: works as designed about 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
    -/**
    - * Defines the OAuth2 server authorization code entity.
    - *
    - * @ContentEntityType(
    - *   id = "oauth2_server_authorization_code",
    - *   label = @Translation("OAuth2 Server Authorization Code"),
    - *   base_table = "oauth2_server_authorization_code",
    - *   admin_permission = "administer oauth2 server",
    - *   fieldable = FALSE,
    - *   translatable = FALSE,
    - *   entity_keys = {
    - *     "id" = "code_id",
    - *     "label" = "uid"
    - *   }
    - * )
    - */
     class AuthorizationCode extends ContentEntityBase implements AuthorizationCodeInterface {
    

    Annotations are not unnecessary code. Without them, Drupal core does not recognize plugins classes, including content entity classes.

    There is nothing to change as per this issue.

Production build 0.71.5 2024