From 3762e7570433ae5c2be8cc3f2d28ff91a9332651 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 3 Oct 2019 17:34:54 -0400 Subject: [PATCH] Inline `relayPaintMetrics` function (#8954) This function was only used once. I missed it in review, but this should save us a few bytes. --- packages/next/client/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/next/client/index.js b/packages/next/client/index.js index be2e7e295982f..2eed1010881e8 100644 --- a/packages/next/client/index.js +++ b/packages/next/client/index.js @@ -249,10 +249,7 @@ function renderReactElement (reactEl, domEl) { } else { ReactDOM.render(reactEl, domEl, markRenderComplete) } - relayPaintMetrics() -} -function relayPaintMetrics () { if (onPerfEntry) { performance.getEntriesByType('paint').forEach(onPerfEntry) }