We don't actually use this anywhere, so let's remove it.

https://github.com/facebook/react/blob/f1d00156df5453bc62bd5668fefdcac4ca67e90e/src/renderers/shared/fiber/ReactFiberScheduler.js#L1504-L1512
failedBoundaries = new Set();
      }
      failedBoundaries.add(boundary);
       This method is unsafe outside of the begin and complete phases.
       We might be in the commit phase when an error is captured.
       The risk is that the return path from this Fiber may not be accurate.
       That risk is acceptable given the benefit of providing users more context.
      const componentStack = getStackAddendumByWorkInProgressFiber(failedWork);
      const componentName = getComponentName(failedWork);
       Add to the collection of captured errors. This is stored as a global
       map of errors and their component stack location keyed by the boundaries
       that capture them. We mostly use this Map as a Set; it's a Map only to
       avoid adding a field to Fiber to store the error.
      if (capturedErrors === null) {
        capturedErrors = new Map();
      }
      const capturedError = {
        componentName,
        componentStack,
        error,
        errorBoundary: errorBoundaryFound ? boundary.stateNode : null,
        errorBoundaryFound,
        errorBoundaryName,
        willRetry,
      };
      capturedErrors.set(boundary, capturedError);
      try {
        logCapturedError(capturedError);
      } catch (e) {