Skip to content

Remove the positions array computed by Parser's parseArguments().#864

Merged
k4b7 merged 1 commit intoKaTeX:masterfrom
marcianx:nuke-positions
Sep 10, 2017
Merged

Remove the positions array computed by Parser's parseArguments().#864
k4b7 merged 1 commit intoKaTeX:masterfrom
marcianx:nuke-positions

Conversation

@marcianx
Copy link
Copy Markdown
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
Copy Markdown
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.
@k4b7 k4b7 merged commit ceefd49 into KaTeX:master Sep 10, 2017
@k4b7
Copy link
Copy Markdown
Member

k4b7 commented Sep 10, 2017

@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