Skip to content

Commit

Permalink
Clean up unused functions from SSR (facebook#20995)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage authored and zhengjitf committed Mar 23, 2021
1 parent 59a2cf6 commit 4de58a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions packages/react-dom/src/server/DOMMarkupOperations.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/

import {
ID_ATTRIBUTE_NAME,
ROOT_ATTRIBUTE_NAME,
BOOLEAN,
OVERLOADED_BOOLEAN,
Expand All @@ -24,16 +23,6 @@ import quoteAttributeValueForBrowser from './quoteAttributeValueForBrowser';
* Operations for dealing with DOM properties.
*/

/**
* Creates markup for the ID property.
*
* @param {string} id Unescaped ID.
* @return {string} Markup string.
*/
export function createMarkupForID(id: string): string {
return ID_ATTRIBUTE_NAME + '=' + quoteAttributeValueForBrowser(id);
}

export function createMarkupForRoot(): string {
return ROOT_ATTRIBUTE_NAME + '=""';
}
Expand Down
1 change: 0 additions & 1 deletion packages/react-dom/src/shared/DOMProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const ATTRIBUTE_NAME_START_CHAR =
export const ATTRIBUTE_NAME_CHAR =
ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';

export const ID_ATTRIBUTE_NAME = 'data-reactid';
export const ROOT_ATTRIBUTE_NAME = 'data-reactroot';
export const VALID_ATTRIBUTE_NAME_REGEX = new RegExp(
'^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$',
Expand Down

0 comments on commit 4de58a2

Please sign in to comment.