removed unused code

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7917 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-02-05 19:53:22 +00:00
parent f5ec35e0f9
commit 9dcb3b2555
2 changed files with 1 additions and 19 deletions

View File

@ -338,25 +338,9 @@ static bool findTagIcon(int tag_class, int /*tag_type*/, QIcon &icon)
* Bring the source code from this adaptation: * Bring the source code from this adaptation:
* http://francisshanahan.com/identicon5/test.html * http://francisshanahan.com/identicon5/test.html
*/ */
QImage GxsIdDetails::makeDefaultIconLocal_locked(const RsGxsId& id)
{
QMutexLocker lock(&mMutex2);
std::map<RsGxsId,QImage>::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) QImage GxsIdDetails::makeDefaultIcon(const RsGxsId& id)
{ {
// if(mInstance != NULL) return drawIdentIcon(QString::fromStdString(id.toStdString()),64*3, true);
// return mInstance->makeDefaultIconLocal_locked(id) ;
// else
return drawIdentIcon(QString::fromStdString(id.toStdString()),64*3, true);
} }
/** /**

View File

@ -80,7 +80,6 @@ signals:
protected: protected:
void connectObject_locked(QObject *object, bool doConnect); void connectObject_locked(QObject *object, bool doConnect);
QImage makeDefaultIconLocal_locked(const RsGxsId& id);
/* Timer */ /* Timer */
virtual void timerEvent(QTimerEvent *event); virtual void timerEvent(QTimerEvent *event);
@ -128,7 +127,6 @@ protected:
/* Thread safe */ /* Thread safe */
QMutex mMutex; QMutex mMutex;
QMutex mMutex2;
}; };
#endif #endif