Revert "Check whether data is nullptr in doCmd"

This reverts commit c25040f793.
merge-requests/6/head
Phil Taylor 2021-06-26 19:09:41 +01:00
rodzic 6d58034a41
commit b071e8d788
1 zmienionych plików z 1 dodań i 6 usunięć

Wyświetl plik

@ -2231,14 +2231,9 @@ void wfmain::doCmd(commandtype cmddata)
{
cmds cmd = cmddata.cmd;
std::shared_ptr<void> data = cmddata.data;
// This switch is for commands with parameters.
// the "default" for non-parameter commands is to call doCmd(cmd).
if (data == nullptr)
{
qInfo(logSystem()) << __PRETTY_FUNCTION__ << "WARNING: data is null";
return;
}
switch (cmd)
{
case cmdSetFreq: