mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 23:19:29 -05:00
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:
parent
f5ec35e0f9
commit
9dcb3b2555
@ -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<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)
|
||||
{
|
||||
// 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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user