Remove deprecated base64::encode(QVariant) version

This commit is contained in:
Colin Wallace
2015-07-15 03:39:58 +00:00
parent acf6393e70
commit 9840050ae7
2 changed files with 0 additions and 17 deletions

View File

@@ -47,8 +47,6 @@ namespace base64
*_data = new T[*_size / sizeof(T)];
memcpy( *_data, data.constData(), *_size );
}
// deprecated!!
QString encode( const QVariant & _data );
// for compatibility-code only
QVariant decode( const QString & _b64,
QVariant::Type _force_type = QVariant::Invalid );

View File

@@ -35,21 +35,6 @@ namespace base64
{
QString encode( const QVariant & _data )
{
QBuffer buf;
buf.open( QBuffer::WriteOnly );
QDataStream out( &buf );
out << _data;
QByteArray data = buf.buffer();
QString dst;
encode( data.constData(), data.size(), dst );
return( dst );
}
QVariant decode( const QString & _b64, QVariant::Type _force_type )
{
char * dst = NULL;