From 5ede1084a6966e227c42ed15acce80288761b253 Mon Sep 17 00:00:00 2001 From: Noah Allen Date: Tue, 21 Apr 2020 14:37:01 -0700 Subject: [PATCH] Remove stale comment --- .../developers/data/data-core-block-editor.md | 2 -- packages/block-editor/src/store/reducer.js | 3 --- packages/block-editor/src/store/selectors.js | 2 -- 3 files changed, 7 deletions(-) diff --git a/docs/designers-developers/developers/data/data-core-block-editor.md b/docs/designers-developers/developers/data/data-core-block-editor.md index 022fcf2cd2db93..34ec46b86ef5d6 100644 --- a/docs/designers-developers/developers/data/data-core-block-editor.md +++ b/docs/designers-developers/developers/data/data-core-block-editor.md @@ -253,8 +253,6 @@ _Returns_ Returns all block objects for the current post being edited as an array in the order they appear in the post. -Does not include InnerBlocks of blocks which control their own InnerBlocks. - Note: It's important to memoize this selector to avoid return a new instance on each call diff --git a/packages/block-editor/src/store/reducer.js b/packages/block-editor/src/store/reducer.js index 00ecabceebe491..c3374ec3b07767 100644 --- a/packages/block-editor/src/store/reducer.js +++ b/packages/block-editor/src/store/reducer.js @@ -34,8 +34,6 @@ import { insertAt, moveTo } from './array'; * context, the value of which is an array of block client IDs existing within * that nesting context. * - * @todo noahtallen - * * @param {Array} blocks Blocks to map. * @param {?string} rootClientId Assumed root client ID. * @@ -264,7 +262,6 @@ const withBlockCache = ( reducer ) => ( state = {}, action ) => { case 'INSERT_BLOCKS': { const updatedBlockUids = keys( flattenBlocks( action.blocks ) ); - // Only include the rootClientId if its inner blocks are uncontrolled. if ( action.rootClientId ) { updatedBlockUids.push( action.rootClientId ); } diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index 45acdc6d9c3343..f29a035a1b3927 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -212,8 +212,6 @@ export const __unstableGetBlockWithoutInnerBlocks = createSelector( * Returns all block objects for the current post being edited as an array in * the order they appear in the post. * - * Does not include InnerBlocks of blocks which control their own InnerBlocks. - * * Note: It's important to memoize this selector to avoid return a new instance * on each call *