Closed
Bug 1089446
Opened 10 years ago
Closed 10 years ago
Remove ancient and unused Perl scripts
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(6 files, 1 obsolete file)
3.69 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
4.32 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
13.06 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
2.38 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
1.94 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
5.37 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
By my count we currently have 94 Perl scripts in the repo. Some of them are imported third-party code, some of them are still useful, but some of them are unused. This bug is about eliminating the latter category.
Assignee | ||
Comment 1•10 years ago
|
||
neckoTiming.pl was added in 2001 as part of the "Neck [sic?] Page Load Timer". It hasn't been touched since then, and I suspect it's unused.
Attachment #8511769 -
Flags: review?(mcmanus)
Assignee | ||
Comment 2•10 years ago
|
||
roc says this is unused.
Attachment #8511770 -
Flags: review?(roc)
Assignee | ||
Comment 3•10 years ago
|
||
build/unix/uniq.pl is a script that prints its given arguments with duplicates removed. Almost trivial, but implemented in surprisingly many lines of Perl. (To be fair, it implements some options that we no longer need.) This patch: - Reimplements the script as a Python almost-one-liner. - Removes the test, which IMO is unnecessary for something so simple. (The test was also surprisingly many lines.) - Removes the corresponding test harness, which contained just this one test. 8 files changed, 12 insertions(+), 385 deletions(-) Huh. One thing to note is that uniq.py doesn't preserve the original ordering, and I think uniq.pl did. But that doesn't seem to matter.
Attachment #8511785 -
Flags: review?(gps)
Comment 4•10 years ago
|
||
Comment on attachment 8511785 [details] [diff] [review] Reimplement build/unix/uniq.pl in Python, and remove its unit test Review of attachment 8511785 [details] [diff] [review]: ----------------------------------------------------------------- Wow. Just wow.
Attachment #8511785 -
Flags: review?(gps) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8511806 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8511808 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 7•10 years ago
|
||
> By my count we currently have 94 Perl scripts in the repo.
Er, make that 97.
Comment 8•10 years ago
|
||
Comment on attachment 8511806 [details] [diff] [review] Improve the comments in both gen_template.pl scripts r=me
Attachment #8511806 -
Flags: review?(bzbarsky) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8511808 [details] [diff] [review] Remove make-atom-strings.pl, which is ancient and unused r=me
Attachment #8511808 -
Flags: review?(bzbarsky) → review+
Attachment #8511770 -
Flags: review?(roc) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Attachment #8512259 -
Flags: review?(nfroyd)
Assignee | ||
Comment 11•10 years ago
|
||
Attachment #8512261 -
Flags: review?(mh+mozilla)
Comment 13•10 years ago
|
||
Comment on attachment 8512261 [details] [diff] [review] Remove config/module2dir.pl, which is ancient and unused Your patch is empty, and it's also bug 1089855
Attachment #8512261 -
Flags: review?(mh+mozilla) → review-
Assignee | ||
Updated•10 years ago
|
Attachment #8512261 -
Attachment is obsolete: true
Updated•10 years ago
|
Attachment #8512259 -
Flags: review?(nfroyd) → review+
Comment 14•10 years ago
|
||
Comment on attachment 8511769 [details] [diff] [review] Remove netwerk/test/neckoTiming.pl, which is ancient and unused Review of attachment 8511769 [details] [diff] [review]: ----------------------------------------------------------------- please also remove PageList.txt which is the script's old input
Attachment #8511769 -
Flags: review?(mcmanus) → review+
Assignee | ||
Comment 15•10 years ago
|
||
Try looks good: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=542b497abeba
Assignee | ||
Comment 16•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/64c5c57286bd https://hg.mozilla.org/integration/mozilla-inbound/rev/82e3c989ec64 https://hg.mozilla.org/integration/mozilla-inbound/rev/693baa2d9ba9 https://hg.mozilla.org/integration/mozilla-inbound/rev/134b583fd7ab https://hg.mozilla.org/integration/mozilla-inbound/rev/9e670b286999 https://hg.mozilla.org/integration/mozilla-inbound/rev/61c2235ebf16
Assignee | ||
Comment 17•10 years ago
|
||
I over-counted initially. We're down to 88 now.
Comment 18•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/64c5c57286bd https://hg.mozilla.org/mozilla-central/rev/82e3c989ec64 https://hg.mozilla.org/mozilla-central/rev/693baa2d9ba9 https://hg.mozilla.org/mozilla-central/rev/134b583fd7ab https://hg.mozilla.org/mozilla-central/rev/9e670b286999 https://hg.mozilla.org/mozilla-central/rev/61c2235ebf16
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•