From f227e7f26b81cb1eba0c837ab2acd7fa7f91404f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Sat, 13 Mar 2021 10:23:06 -0500 Subject: [PATCH] Clean up unused functions from SSR (#20995) --- packages/react-dom/src/server/DOMMarkupOperations.js | 11 ----------- packages/react-dom/src/shared/DOMProperty.js | 1 - 2 files changed, 12 deletions(-) diff --git a/packages/react-dom/src/server/DOMMarkupOperations.js b/packages/react-dom/src/server/DOMMarkupOperations.js index 7792bbcb0d5ac..7306d9393be56 100644 --- a/packages/react-dom/src/server/DOMMarkupOperations.js +++ b/packages/react-dom/src/server/DOMMarkupOperations.js @@ -8,7 +8,6 @@ */ import { - ID_ATTRIBUTE_NAME, ROOT_ATTRIBUTE_NAME, BOOLEAN, OVERLOADED_BOOLEAN, @@ -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 + '=""'; } diff --git a/packages/react-dom/src/shared/DOMProperty.js b/packages/react-dom/src/shared/DOMProperty.js index 2d9a7914f91e5..3bf0fb5de2c00 100644 --- a/packages/react-dom/src/shared/DOMProperty.js +++ b/packages/react-dom/src/shared/DOMProperty.js @@ -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 + ']*$',