Skip to content

Commit

Permalink
Merge pull request #4615 from JackStouffer/unused-variables
Browse files Browse the repository at this point in the history
[trivial] Removed unused variables from std.net.curl
  • Loading branch information
WalterBright committed Jul 20, 2016
2 parents 0fe9fda + 447b319 commit 7e7bee5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions std/net/curl.d
Expand Up @@ -2233,8 +2233,6 @@ private bool decodeLineInto(Terminator, Char = char)(ref const(ubyte)[] basesrc,
EncodingScheme scheme,
Terminator terminator)
{
auto startLen = src.length;
size_t charsDecoded = 0;
// if there is anything in the basesrc then try to decode that
// first.
if (basesrc.length != 0)
Expand Down Expand Up @@ -3499,7 +3497,6 @@ struct SMTP
curl.onSend = delegate size_t(void[] data)
{
if (!msg.length) return 0;
auto m = cast(void[])msg;
size_t to_copy = min(data.length, _message.length);
data[0..to_copy] = (cast(void[])_message)[0..to_copy];
_message = _message[to_copy..$];
Expand Down

0 comments on commit 7e7bee5

Please sign in to comment.