Skip to content

Commit 79c5b8e

Browse files
sayrerfacebook-github-bot
authored andcommitted
Remove unused include. (#19548)
Summary: `LayoutableShadowNode.cpp` includes `"LayoutableShadowNode.h"` as well as `<fabric/core/LayoutContext.h>`. In turn, `LayoutContext.h` then includes `<fabric/core/LayoutableShadowNode.h>`. `LayoutContext.h` doesn't actually require `LayoutableShadowNode.h`, but this unnecessary inclusion can cause duplicate definition errors if the two include paths don't map to exactly the same file. This patch removes the unnecessary include. The CI's build system should cover the testing needed. [INTERNAL] [MINOR] [fabric] - Remove an unnecessary include in fabric/core/layout. Closes #19548 Differential Revision: D8313337 Pulled By: shergin fbshipit-source-id: 2e01e29ff25131543d9a8601483c2e716c7437be
1 parent 9cc14ec commit 79c5b8e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ReactCommon/fabric/core/layout/LayoutContext.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77

88
#pragma once
99

10-
#include <unordered_set>
11-
12-
#include <fabric/core/LayoutableShadowNode.h>
1310
#include <fabric/graphics/Geometry.h>
1411

1512
namespace facebook {

0 commit comments

Comments
 (0)