From 84f69b5ea85a18e79ee2f70d6953edfe44cd57f6 Mon Sep 17 00:00:00 2001 From: Jack Stouffer Date: Mon, 11 Apr 2016 01:13:00 -0400 Subject: [PATCH] Removed commented out, undocumented function --- std/encoding.d | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/std/encoding.d b/std/encoding.d index 9c2d667b3..8a6aa1514 100644 --- a/std/encoding.d +++ b/std/encoding.d @@ -1948,37 +1948,6 @@ body return array.length - t.length; } -// /** -// * Encodes a single code point into a Buffer. -// * -// * This function encodes a single code point into one or more code units -// * The code units are stored in a growable buffer. -// * -// * The input to this function MUST be a valid code point. -// * This is enforced by the function's in-contract. -// * -// * The type of the output cannot be deduced. Therefore, it is necessary to -// * explicitly specify the encoding as a template parameter. -// * -// * Supersedes: -// * This function supersedes std.utf.encode(), however, note that the -// * function codeUnits() supersedes it more conveniently. -// * -// * Standards: Unicode 5.0, ASCII, ISO-8859-1, WINDOWS-1252 -// * -// * Params: -// * c = the code point to be encoded -// */ -// deprecated void encode(E)(dchar c, ref Buffer!(E) buffer) -// in -// { -// assert(isValidCodePoint(c)); -// } -// body -// { -// EncoderInstance!(E).encode(c,buffer); -// } - /* Encodes $(D c) in units of type $(D E) and writes the result to the output range $(D R). Returns the number of $(D E)s written.