From 12a5732b1c5e48d77528db89f7f9dc77d7d9d967 Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Tue, 5 Feb 2019 05:10:18 -0330 Subject: [PATCH] remove an unused UTF conversion function (#230) remove an unused UTF conversion function merged-on-behalf-of: Basile-z --- source/dyaml/scanner.d | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/source/dyaml/scanner.d b/source/dyaml/scanner.d index a9b9bce..a691552 100644 --- a/source/dyaml/scanner.d +++ b/source/dyaml/scanner.d @@ -2002,14 +2002,3 @@ struct Scanner return '\0'; } } - -private: - -/// A nothrow function that converts a dchar[] to a string. -string utf32To8(C)(C[] str) - if(is(Unqual!C == dchar)) -{ - try { return str.to!string; } - catch(ConvException e) { assert(false, "Unexpected invalid UTF-32 string"); } - catch(Exception e) { assert(false, "Unexpected exception during UTF-8 encoding"); } -}