I am new to Qt and have taken over a project from a developer who left our company. I see several places in his code where a signal is emitted, but there is no connection to a slot or other reference in the code to the signal. Is there a reason to do this that I am unaware of?
I have searched through the code trying to find anything that would reference the signals being emitted, but I cannot find anything other than the code that does the emit.
//from the header file
signals:
void newInstance();
void SingleInstance::newConnection()
{
emit newInstance(); // this is not referenced anywhere else in the project
qDebug() << "New connection loading...";
mSocket = mServer.nextPendingConnection();
connect(mSocket,SIGNAL(readyRead()),this,SLOT(readyRead()));
}
There are no errors and the application runs fine. I am just trying to see if there is something I am missing because of lack of experience with Qt.