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 the positions array computed by Parser's parseArguments(). #864

Merged
merged 1 commit into from
Sep 10, 2017

Conversation

marcianx
Copy link
Collaborator

This array is computed incorrectly (it's always an array of undefineds) and it's not used anywhere. See #863 for details.

* List of ParseNodes followed by an array of positions.
* Returned by `Parser`'s `parseArguments`.
*/
type ParseResult = (ParseNode | number[])[] | ParseNode;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI: I'd confused myself in the last PR where I used this as the type: I'd confused the local parseArray method with Parser's parseArguments method. Sorry about that.

This array is computed incorrectly (it's always an array of undefineds)
and it's not used anywhere.
@kevinbarabash kevinbarabash merged commit ceefd49 into KaTeX:master Sep 10, 2017
@kevinbarabash
Copy link
Member

@marcianx thanks for the PR.

@marcianx marcianx deleted the nuke-positions branch September 10, 2017 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants