From 0c0f35e064411c8fa7283353f827fc946c0ab771 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 9 Feb 2015 20:47:58 +0000 Subject: [PATCH] removed unused code in AvatarDefs git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7932 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/common/AvatarDefs.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/retroshare-gui/src/gui/common/AvatarDefs.cpp b/retroshare-gui/src/gui/common/AvatarDefs.cpp index f4bcb20c1..213d67bf3 100644 --- a/retroshare-gui/src/gui/common/AvatarDefs.cpp +++ b/retroshare-gui/src/gui/common/AvatarDefs.cpp @@ -65,7 +65,6 @@ void AvatarDefs::getAvatarFromSslId(const RsPeerId& sslId, QPixmap &avatar, cons } void AvatarDefs::getAvatarFromGxsId(const RsGxsId& gxsId, QPixmap &avatar, const QString& defaultImage) { - unsigned char *data = NULL; int size = 0; /* get avatar */ @@ -81,8 +80,6 @@ void AvatarDefs::getAvatarFromGxsId(const RsGxsId& gxsId, QPixmap &avatar, const if(details.mAvatar.mSize == 0 || !avatar.loadFromData(details.mAvatar.mData, details.mAvatar.mSize, "PNG")) avatar = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(gxsId)); - - delete[] data; } void AvatarDefs::getAvatarFromGpgId(const RsPgpId& gpgId, QPixmap &avatar, const QString& defaultImage)