Skip to content

[Driver] Remove unused input type code (NFCI) #12263

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

Conversation

modocache
Copy link
Contributor

Summary:

When the Swift driver executable was first added in ed20385, the code included a FIXME to support input types, like Clang's -x <language> option. Perhaps as a first step in implementing this functionality, it also included dead code that manipulated an input type argument, even though the variable for storing the argument was never written to.

Remove the unused input type code, and update the FIXME with a Swift bug URL, so that a discussion on next steps can be had.

Test plan: utils/build-script --release --test

@modocache modocache requested a review from jrose-apple October 4, 2017 05:31
@jrose-apple
Copy link
Contributor

We generally don't put bug numbers in the code, partially because a number of them would be Radar URLs. If there's an actual issue report we probably don't need the FIXME.

(In most cases a FIXME probably isn't well-specified enough to turn into a report. This one might be.)

@jrose-apple
Copy link
Contributor

The actual simplification looks fine.

@modocache
Copy link
Contributor Author

Ah OK. Should I remove the FIXME altogether, then?

@jrose-apple
Copy link
Contributor

Yes, sure.

Summary:
When the Swift driver executable was first added in
swiftlang@ed20385,
the code included a FIXME to support input types, like Clang's
`-x <language>` option. Perhaps as a first step in implementing this
functionality, it also included dead code that manipulated an input type
argument, even though the variable for storing the argument was never
written to.

Remove the unused input type code, and the FIXME. The FIXME is now
tracked with a Swift bug URL, so that a discussion on next steps can be had:
https://bugs.swift.org/browse/SR-6054

Test plan: `utils/build-script --release --test`
@modocache modocache force-pushed the remove-old-input-type-arg-code-and-fixme branch from 58c31dc to 3f8e808 Compare October 4, 2017 17:54
@modocache
Copy link
Contributor Author

Done!

@swift-ci please smoke test and merge

@modocache
Copy link
Contributor Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 64f5b45 into swiftlang:master Oct 6, 2017
@modocache modocache deleted the remove-old-input-type-arg-code-and-fixme branch October 6, 2017 16:08
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.

3 participants