Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29420565: Noissue - Remove some dead code (Closed)

Created:
April 24, 2017, 9:43 a.m. by Wladimir Palant
Modified:
April 24, 2017, 9:52 a.m.
Reviewers:
Sebastian Noack
Base URL:
https://hg.adblockplus.org/buildtools
Visibility:
Public.

Description

Jakub Wilk noticed that we are using re.sub() incorrectly in some places - passing flags parameter by position, yet this position is interpreted as count instead. I looked a bit closer, and both occasions are actually dead code. Functions appendToFile() and removeFromFile() are simply not being called any more. And fixAbsoluteUrls() hack in the Safari packager is unnecessary, we no longer have any absolute URLs. Verified that the builds are identical with this change applied.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -33 lines) Patch
M localeTools.py View 1 chunk +0 lines, -21 lines 0 comments Download
M packagerSafari.py View 2 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 2
Wladimir Palant
April 24, 2017, 9:43 a.m. (2017-04-24 09:43:20 UTC) #1
Sebastian Noack
April 24, 2017, 9:49 a.m. (2017-04-24 09:49:32 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld