UI: Remove UNUSED_PARAMETER where unnecessary

Since cpp allows removing the unused parameters from the function name,
UNUSED_PARAMETER is not needed, unless it is in an ifdef.
This commit is contained in:
cg2121 2023-01-28 20:42:41 -06:00 • committed by Jim
commit 3a610c698e
24 changed files with 93 additions and 225 deletions

View file

@ -83,9 +83,7 @@ OBSBasicInteraction::~OBSBasicInteraction()
OBSEventFilter *OBSBasicInteraction::BuildEventFilter()
{
return new OBSEventFilter([this](QObject *obj, QEvent *event) {
UNUSED_PARAMETER(obj);
return new OBSEventFilter([this](QObject *, QEvent *event) {
switch (event->type()) {
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
@ -115,12 +113,10 @@ OBSEventFilter *OBSBasicInteraction::BuildEventFilter()
});
}
void OBSBasicInteraction::SourceRemoved(void *data, calldata_t *params)
void OBSBasicInteraction::SourceRemoved(void *data, calldata_t *)
{
QMetaObject::invokeMethod(static_cast<OBSBasicInteraction *>(data),
"close");
UNUSED_PARAMETER(params);
}
void OBSBasicInteraction::SourceRenamed(void *data, calldata_t *params)