Skip to content

Commit

Permalink
Remove stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Apr 21, 2020
1 parent 47d88ec commit 5ede108
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions packages/block-editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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 );
}
Expand Down
2 changes: 0 additions & 2 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 5ede108

Please sign in to comment.