mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
removed unused code in AvatarDefs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7932 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
90a2d2a160
commit
0c0f35e064
@ -65,7 +65,6 @@ void AvatarDefs::getAvatarFromSslId(const RsPeerId& sslId, QPixmap &avatar, cons
|
|||||||
}
|
}
|
||||||
void AvatarDefs::getAvatarFromGxsId(const RsGxsId& gxsId, QPixmap &avatar, const QString& defaultImage)
|
void AvatarDefs::getAvatarFromGxsId(const RsGxsId& gxsId, QPixmap &avatar, const QString& defaultImage)
|
||||||
{
|
{
|
||||||
unsigned char *data = NULL;
|
|
||||||
int size = 0;
|
int size = 0;
|
||||||
|
|
||||||
/* get avatar */
|
/* 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"))
|
if(details.mAvatar.mSize == 0 || !avatar.loadFromData(details.mAvatar.mData, details.mAvatar.mSize, "PNG"))
|
||||||
avatar = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(gxsId));
|
avatar = QPixmap::fromImage(GxsIdDetails::makeDefaultIcon(gxsId));
|
||||||
|
|
||||||
delete[] data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarDefs::getAvatarFromGpgId(const RsPgpId& gpgId, QPixmap &avatar, const QString& defaultImage)
|
void AvatarDefs::getAvatarFromGpgId(const RsPgpId& gpgId, QPixmap &avatar, const QString& defaultImage)
|
||||||
|
Loading…
Reference in New Issue
Block a user