FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build: reduces unused js2c.py code by eljefedelrodeodeljefe · Pull Request #7465 · nodejs/node · GitHub

/ node Public

build: reduces unused js2c.py code - #7465

Closed
eljefedelrodeodeljefe wants to merge 1 commit into
nodejs:masterfrom
eljefedelrodeodeljefe:reduce-unused
Closed

build: reduces unused js2c.py code#7465
eljefedelrodeodeljefe wants to merge 1 commit into
nodejs:masterfrom
eljefedelrodeodeljefe:reduce-unused

Conversation

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

build

Description of change

Just for housekeeping and less confusion, we could get rid of unused code in js2c.py. I didn't see any use of those parts at least and can originate it back to commit 63a9cd3

I dug into this part of the build process and wanted to rewrite js2c.py in JS, which is fairly trivial now, as opposed to 2009. But those parts are just not necessary - pending CI.

likely those parts originate from the single commit 63a9cd3 and have never been
used. This cleans up some of the implementation to have less confusions for devs
visiting this file.
mscdex added build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory. labels Jun 28, 2016

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor Author

CI is green.

indutny commented Jun 29, 2016

Copy link
Copy Markdown
Member

LGTM

indutny commented Jun 29, 2016

Copy link
Copy Markdown
Member

cc @bnoordhuis

Copy link
Copy Markdown
Member

LGTM but s/reduces/reduce/ (or 'remove' or 'delete') and s/likely/Likely/ in the commit log.

Copy link
Copy Markdown
Contributor

LGTM if it works (with @bnoordhuis's nits). Also, it looks like the commit message may have long line but I may be wrong.

Comment thread tools/js2c.py
output.write(HEADER_TEMPLATE % {
'builtin_count': len(ids) + len(delay_ids),
'delay_count': len(delay_ids),
'source_lines': "\n".join(source_lines_empty),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Remove the declaration and accumulation of source_lines_empty as well. It is not used anywhere else.

Copy link
Copy Markdown
Member

I don't want to steal your thunder but I was going through my open pull requests and I realized I made pretty much the same changes in #5458.

Copy link
Copy Markdown
Contributor Author

Fine for me. :) closing in favour for #5458

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL