Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Delete unused variadic runtime functions
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Jan 24, 2015
1 parent 7e9234c commit 5fd397a
Showing 1 changed file with 0 additions and 85 deletions.
85 changes: 0 additions & 85 deletions src/rt/lifetime.d
Original file line number Diff line number Diff line change
Expand Up @@ -1036,66 +1036,6 @@ void[] _d_newarrayOpT(alias op)(const TypeInfo ti, size_t[] dims)
}


/**
*
*/
extern (C) void[] _d_newarraymT(const TypeInfo ti, size_t ndims, ...)
{
debug(PRINTF) printf("_d_newarraymT(ndims = %d)\n", ndims);

if (ndims == 0)
return null;
else
{
va_list q;
version(X86)
va_start(q, ndims);
else version(Win64)
va_start(q, ndims);
else version(X86_64)
va_start(q, __va_argsave);
else
static assert(false, "platform not supported");

auto dims = (cast(size_t*)alloca(size_t.sizeof * ndims))[0..ndims];
foreach(ref v; dims)
va_arg(q, v);
va_end(q);
return _d_newarrayOpT!(_d_newarrayT)(ti, dims);
}
}


/**
*
*/
extern (C) void[] _d_newarraymiT(const TypeInfo ti, size_t ndims, ...)
{
debug(PRINTF) printf("_d_newarraymiT(ndims = %d)\n", ndims);

if (ndims == 0)
return null;
else
{
va_list q;
version(X86)
va_start(q, ndims);
else version(Win64)
va_start(q, ndims);
else version(X86_64)
va_start(q, __va_argsave);
else
static assert(false, "platform not supported");

auto dims = (cast(size_t*)alloca(size_t.sizeof * ndims))[0..ndims];
foreach(ref v; dims)
va_arg(q, v);
va_end(q);
return _d_newarrayOpT!(_d_newarrayiT)(ti, dims);
}
}


/**
*
*/
Expand Down Expand Up @@ -2224,31 +2164,6 @@ body
}


/**
*
*/
extern (C) void[] _d_arraycatnT(const TypeInfo ti, uint n, ...)
{
auto arrs = (cast(byte[]*)alloca((byte[]).sizeof * n))[0..n];

va_list ap;
version(X86)
va_start(ap, n);
else version(Win64)
va_start(ap, n);
else version(X86_64)
va_start(ap, __va_argsave);
else
static assert(false, "platform not supported");

foreach(ref b; arrs)
va_arg(ap, b);
va_end(ap);

return _d_arraycatnTX(ti, arrs);
}


/**
*
*/
Expand Down

0 comments on commit 5fd397a

Please sign in to comment.