Remove unused function from generated code #29
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit removes a function in the generated code that is not used.
The generated
b64decode
is currently technically also unused, and causes unnecessary bloat of the generated code. I did not remove it, because it is currently used by the test to decode the bytes result from the response (asbytes
are currently left untouched as it comes back from the gateway). Maybe it was left in as a convenience for users, but this plugin probably shouldn't act as a utility package for generic operations such as base64 decoding.I think one of the following should happen:
b64decode
in, as it will be used by the generated codeb64decode
function should be removed, and clients should choose to include their own base64 decoding if they need it.The former option breaks backwards compatibility, but is related to the open question on how to
fix Issue 25 : should this plugin do transformations on the data or not? The path chosen for that issue impacts the right way to handle
bytes
data from the server as well.