Skip to content

Commit

Permalink
Remove SpecGeneratedComponent.canResolve()
Browse files Browse the repository at this point in the history
Summary: This parrot is dead...

Reviewed By: adityasharat

Differential Revision: D48924332

fbshipit-source-id: 6dfbaa738eaab16ac4afd60e2469ccd528ad615a
  • Loading branch information
mkarpio authored and facebook-github-bot committed Sep 5, 2023
1 parent f5cb135 commit c1533a6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions litho-core/src/main/java/com/facebook/litho/Column.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ private constructor(
children: MutableList<Component>? = null
) : this(null, alignContent, alignItems, justifyContent, wrap, reverse, children)

override fun canResolve(): Boolean = true

public override fun resolve(resolveContext: ResolveContext, c: ComponentContext): LithoNode? {
val node = LithoNode()
node.flexDirection(if (reverse) YogaFlexDirection.COLUMN_REVERSE else YogaFlexDirection.COLUMN)
Expand Down
2 changes: 0 additions & 2 deletions litho-core/src/main/java/com/facebook/litho/Row.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ private constructor(
children: MutableList<Component>? = null
) : this(null, alignContent, alignItems, justifyContent, wrap, reverse, children)

override fun canResolve(): Boolean = true

public override fun resolve(resolveContext: ResolveContext, c: ComponentContext): LithoNode? {
val node = LithoNode()
node.flexDirection(if (reverse) YogaFlexDirection.ROW_REVERSE else YogaFlexDirection.ROW)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,6 @@ protected final PrepareResult prepare(ResolveContext resolveContext, ComponentCo
return null;
}

/**
* Indicate that this component implements its own {@link #resolve(LithoLayoutContext,
* ComponentContext)} logic instead of going through {@link #render(ComponentContext)}.
*/
boolean canResolve() {
return false;
}

@Override
protected ComponentResolveResult resolve(
final ResolveContext resolveContext,
Expand Down
5 changes: 0 additions & 5 deletions litho-core/src/main/java/com/facebook/litho/Wrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ private Wrapper() {
super("Wrapper");
}

@Override
protected boolean canResolve() {
return true;
}

public static Builder create(ComponentContext context) {
return create(context, 0, 0);
}
Expand Down

0 comments on commit c1533a6

Please sign in to comment.