Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused private methods #4289

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Sep 9, 2024

No description provided.

@@ -418,14 +418,6 @@ protected function compileIsTraitable(Compiler $compiler)
continue;
}

if ($node instanceof TextNode && ctype_space($node->getAttribute('data'))) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a child template, these nodes are removed before getting here anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Parser::filterBodyNodes()

continue;
}

if ($node instanceof BlockReferenceNode) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a child template, these nodes are removed before getting here anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Parser::filterBodyNodes()

@fabpot fabpot changed the title Remove unused private method Remove unused private methods Sep 9, 2024
@fabpot fabpot merged commit 6420791 into twigphp:3.x Sep 9, 2024
48 of 49 checks passed
@fabpot fabpot deleted the non-used-private-method branch September 9, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant