summaryrefslogtreecommitdiff
path: root/Lib/d/std_string.i
diff options
context:
space:
mode:
authorErez Geva <ErezGeva2@gmail.com>2023-05-03 12:09:15 +0200
committerOlly Betts <olly@survex.com>2023-05-04 13:18:10 +1200
commit63b1293e1a760e0ce1a27208a5231e705c8f0f3b (patch)
tree49ae567d51c5b72ace63a15b54612308274ee56a /Lib/d/std_string.i
parentdada37e1d1a860100c23f7971b0aac58154441fa (diff)
downloadswig-63b1293e1a760e0ce1a27208a5231e705c8f0f3b.tar.gz
Drop D version 1
See #2538
Diffstat (limited to 'Lib/d/std_string.i')
-rw-r--r--Lib/d/std_string.i7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/d/std_string.i b/Lib/d/std_string.i
index 8d75d23e4..fbee0578c 100644
--- a/Lib/d/std_string.i
+++ b/Lib/d/std_string.i
@@ -79,19 +79,12 @@ class string;
// We need to have the \0-terminated string conversion functions available in
// the D proxy modules.
-#if (SWIG_D_VERSION == 1)
-// Could be easily extended to support Phobos as well.
-SWIGD_STD_STRING_TYPEMAPS(char*, char[], tango.stdc.stringz.fromStringz, tango.stdc.stringz.toStringz)
-
-%pragma(d) globalproxyimports = "static import tango.stdc.stringz;";
-#else
SWIGD_STD_STRING_TYPEMAPS(const(char)*, string, std.conv.to!string, std.string.toStringz)
%pragma(d) globalproxyimports = %{
static import std.conv;
static import std.string;
%}
-#endif
#undef SWIGD_STD_STRING_TYPEMAPS