diff --git a/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp b/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp index 5f39ddd65..6d4aa1e54 100644 --- a/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp +++ b/retroshare-gui/src/gui/gxs/GxsIdDetails.cpp @@ -338,25 +338,9 @@ static bool findTagIcon(int tag_class, int /*tag_type*/, QIcon &icon) * Bring the source code from this adaptation: * http://francisshanahan.com/identicon5/test.html */ -QImage GxsIdDetails::makeDefaultIconLocal_locked(const RsGxsId& id) -{ - QMutexLocker lock(&mMutex2); - - std::map::const_iterator it = image_cache.find(id) ; - - if(it != image_cache.end()) - return it->second ; - - image_cache[id] = drawIdentIcon(QString::fromStdString(id.toStdString()),64*3, true); - - return image_cache[id] ; -} QImage GxsIdDetails::makeDefaultIcon(const RsGxsId& id) { -// if(mInstance != NULL) -// return mInstance->makeDefaultIconLocal_locked(id) ; - // else - return drawIdentIcon(QString::fromStdString(id.toStdString()),64*3, true); + return drawIdentIcon(QString::fromStdString(id.toStdString()),64*3, true); } /** diff --git a/retroshare-gui/src/gui/gxs/GxsIdDetails.h b/retroshare-gui/src/gui/gxs/GxsIdDetails.h index ef865a22f..61a544ef7 100644 --- a/retroshare-gui/src/gui/gxs/GxsIdDetails.h +++ b/retroshare-gui/src/gui/gxs/GxsIdDetails.h @@ -80,7 +80,6 @@ signals: protected: void connectObject_locked(QObject *object, bool doConnect); - QImage makeDefaultIconLocal_locked(const RsGxsId& id); /* Timer */ virtual void timerEvent(QTimerEvent *event); @@ -128,7 +127,6 @@ protected: /* Thread safe */ QMutex mMutex; - QMutex mMutex2; }; #endif