mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 00:15:51 -04:00
removed unused stuff
This commit is contained in:
parent
c70b84497a
commit
41d972b359
3 changed files with 10 additions and 10 deletions
|
@ -536,13 +536,13 @@ void NotifyQt::notifyListChange(int list, int type)
|
||||||
#endif
|
#endif
|
||||||
switch(list)
|
switch(list)
|
||||||
{
|
{
|
||||||
|
#ifdef TO_REMOVE
|
||||||
case NOTIFY_LIST_NEIGHBOURS:
|
case NOTIFY_LIST_NEIGHBOURS:
|
||||||
#ifdef NOTIFY_DEBUG
|
#ifdef NOTIFY_DEBUG
|
||||||
std::cerr << "received neighbours changed" << std::endl ;
|
std::cerr << "received neighbours changed" << std::endl ;
|
||||||
#endif
|
#endif
|
||||||
emit neighboursChanged();
|
emit neighboursChanged();
|
||||||
break;
|
break;
|
||||||
#ifdef TO_REMOVE
|
|
||||||
case NOTIFY_LIST_FRIENDS:
|
case NOTIFY_LIST_FRIENDS:
|
||||||
#ifdef NOTIFY_DEBUG
|
#ifdef NOTIFY_DEBUG
|
||||||
std::cerr << "received friends changed" << std::endl ;
|
std::cerr << "received friends changed" << std::endl ;
|
||||||
|
@ -634,6 +634,7 @@ void NotifyQt::notifyListChange(int list, int type)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TO_REMOVE
|
||||||
void NotifyQt::notifyListPreChange(int list, int /*type*/)
|
void NotifyQt::notifyListPreChange(int list, int /*type*/)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -649,7 +650,6 @@ void NotifyQt::notifyListPreChange(int list, int /*type*/)
|
||||||
{
|
{
|
||||||
case NOTIFY_LIST_NEIGHBOURS:
|
case NOTIFY_LIST_NEIGHBOURS:
|
||||||
break;
|
break;
|
||||||
#ifdef TO_REMOVE
|
|
||||||
case NOTIFY_LIST_FRIENDS:
|
case NOTIFY_LIST_FRIENDS:
|
||||||
emit friendsChanged() ;
|
emit friendsChanged() ;
|
||||||
break;
|
break;
|
||||||
|
@ -659,7 +659,6 @@ void NotifyQt::notifyListPreChange(int list, int /*type*/)
|
||||||
case NOTIFY_LIST_DIRLIST_LOCAL:
|
case NOTIFY_LIST_DIRLIST_LOCAL:
|
||||||
emit filesPreModChanged(true) ; /* local */
|
emit filesPreModChanged(true) ; /* local */
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
case NOTIFY_LIST_SEARCHLIST:
|
case NOTIFY_LIST_SEARCHLIST:
|
||||||
break;
|
break;
|
||||||
case NOTIFY_LIST_CHANNELLIST:
|
case NOTIFY_LIST_CHANNELLIST:
|
||||||
|
@ -671,6 +670,7 @@ void NotifyQt::notifyListPreChange(int list, int /*type*/)
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void NotifyQt::enable()
|
void NotifyQt::enable()
|
||||||
{
|
{
|
||||||
|
@ -694,7 +694,7 @@ void NotifyQt::UpdateGUI()
|
||||||
// the gui is running, then they get updated by callbacks.
|
// the gui is running, then they get updated by callbacks.
|
||||||
if(!already_updated)
|
if(!already_updated)
|
||||||
{
|
{
|
||||||
emit neighboursChanged();
|
// emit neighboursChanged();
|
||||||
emit configChanged();
|
emit configChanged();
|
||||||
|
|
||||||
already_updated = true ;
|
already_updated = true ;
|
||||||
|
|
|
@ -60,7 +60,7 @@ class NotifyQt: public QObject, public NotifyClient
|
||||||
|
|
||||||
void setNetworkDialog(NetworkDialog *c) { cDialog = c; }
|
void setNetworkDialog(NetworkDialog *c) { cDialog = c; }
|
||||||
|
|
||||||
virtual void notifyListPreChange(int list, int type);
|
// virtual void notifyListPreChange(int list, int type);
|
||||||
virtual void notifyListChange(int list, int type);
|
virtual void notifyListChange(int list, int type);
|
||||||
// virtual void notifyErrorMsg(int list, int sev, std::string msg);
|
// virtual void notifyErrorMsg(int list, int sev, std::string msg);
|
||||||
virtual void notifyChatMessage(const ChatMessage& /* msg */);
|
virtual void notifyChatMessage(const ChatMessage& /* msg */);
|
||||||
|
@ -104,14 +104,14 @@ class NotifyQt: public QObject, public NotifyClient
|
||||||
// It's beneficial to send info to the GUI using signals, because signals are thread-safe
|
// It's beneficial to send info to the GUI using signals, because signals are thread-safe
|
||||||
// as they get queued by Qt.
|
// as they get queued by Qt.
|
||||||
//
|
//
|
||||||
void hashingInfoChanged(const QString&) const ;
|
// void hashingInfoChanged(const QString&) const ;
|
||||||
// void filesPreModChanged(bool) const ;
|
// void filesPreModChanged(bool) const ;
|
||||||
void filesPostModChanged(bool) const ;
|
// void filesPostModChanged(bool) const ;
|
||||||
// void transfersChanged() const ;
|
// void transfersChanged() const ;
|
||||||
// void friendsChanged() const ;
|
// void friendsChanged() const ;
|
||||||
void lobbyListChanged() const ;
|
void lobbyListChanged() const ;
|
||||||
void chatLobbyEvent(qulonglong,int,const RsGxsId&,const QString&) ;
|
void chatLobbyEvent(qulonglong,int,const RsGxsId&,const QString&) ;
|
||||||
void neighboursChanged() const ;
|
// void neighboursChanged() const ;
|
||||||
void configChanged() const ;
|
void configChanged() const ;
|
||||||
void logInfoChanged(const QString&) const ;
|
void logInfoChanged(const QString&) const ;
|
||||||
void chatStatusChanged(const ChatId&,const QString&) const ;
|
void chatStatusChanged(const ChatId&,const QString&) const ;
|
||||||
|
|
|
@ -731,7 +731,7 @@ feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
||||||
// QObject::connect(notify,SIGNAL(filesPostModChanged(bool)) ,w ,SLOT(postModDirectories(bool)) ,Qt::QueuedConnection ) ;
|
// QObject::connect(notify,SIGNAL(filesPostModChanged(bool)) ,w ,SLOT(postModDirectories(bool)) ,Qt::QueuedConnection ) ;
|
||||||
// QObject::connect(notify,SIGNAL(transfersChanged()) ,w->transfersDialog ,SLOT(insertTransfers() )) ;
|
// QObject::connect(notify,SIGNAL(transfersChanged()) ,w->transfersDialog ,SLOT(insertTransfers() )) ;
|
||||||
QObject::connect(notify,SIGNAL(publicChatChanged(int)) ,w->friendsDialog ,SLOT(publicChatChanged(int) ));
|
QObject::connect(notify,SIGNAL(publicChatChanged(int)) ,w->friendsDialog ,SLOT(publicChatChanged(int) ));
|
||||||
QObject::connect(notify,SIGNAL(neighboursChanged()) ,w->friendsDialog->networkDialog ,SLOT(securedUpdateDisplay())) ;
|
// QObject::connect(notify,SIGNAL(neighboursChanged()) ,w->friendsDialog->networkDialog ,SLOT(securedUpdateDisplay())) ;
|
||||||
|
|
||||||
QObject::connect(notify,SIGNAL(chatStatusChanged(const QString&,const QString&,bool)),w->friendsDialog,SLOT(updatePeerStatusString(const QString&,const QString&,bool)));
|
QObject::connect(notify,SIGNAL(chatStatusChanged(const QString&,const QString&,bool)),w->friendsDialog,SLOT(updatePeerStatusString(const QString&,const QString&,bool)));
|
||||||
QObject::connect(notify,SIGNAL(ownStatusMessageChanged()),w->friendsDialog,SLOT(loadmypersonalstatus()));
|
QObject::connect(notify,SIGNAL(ownStatusMessageChanged()),w->friendsDialog,SLOT(loadmypersonalstatus()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue