Skip to content

Commit

Permalink
Remove unused private api
Browse files Browse the repository at this point in the history
Change-Id: Iffe5a33b8a1f134d722371a9e92ba9c9d13c51f8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
  • Loading branch information
nierob authored and Jędrzej Nowacki committed Nov 19, 2014
1 parent 6d2e28b commit 164a301
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/corelib/kernel/qmetatype.h
Expand Up @@ -714,18 +714,6 @@ ConverterFunctor<From, To, UnaryFunction>::~ConverterFunctor()
namespace QtMetaTypePrivate {
template <typename T, bool Accepted = true>
struct QMetaTypeFunctionHelper {
static void Delete(void *t)
{
delete static_cast<T*>(t);
}

static void *Create(const void *t)
{
if (t)
return new T(*static_cast<const T*>(t));
return new T();
}

static void Destruct(void *t)
{
Q_UNUSED(t) // Silence MSVC that warns for POD types.
Expand Down Expand Up @@ -753,8 +741,6 @@ struct QMetaTypeFunctionHelper {

template <typename T>
struct QMetaTypeFunctionHelper<T, /* Accepted */ false> {
static void Delete(void *) {}
static void *Create(const void *) { return 0; }
static void Destruct(void *) {}
static void *Construct(void *, const void *) { return 0; }
#ifndef QT_NO_DATASTREAM
Expand Down

0 comments on commit 164a301

Please sign in to comment.