Skip to content

Commit cacc51c

Browse files
Removes unused variables.
1 parent aa3b52e commit cacc51c

5 files changed

+7
-15
lines changed

src/quick-access-dock.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,11 @@ void QuickAccessDock::SourceDestroyed()
207207
}
208208
}
209209

210-
void QuickAccessDock::SourceRename(obs_source_t *source, std::string newName,
211-
std::string prevName)
210+
void QuickAccessDock::SourceRename(obs_source_t *source)
212211
{
213212
// Dynamic sources are handled from scene item add/delete events
214213
if (_switchingSC || !_widget) {
215214
return;
216215
}
217-
_widget->SourceRename(source, newName, prevName);
216+
_widget->SourceRename(source);
218217
}

src/quick-access-dock.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class QuickAccessDock : public QWidget {
3434

3535
void SourceCreated(obs_source_t *source);
3636
void SourceDestroyed();
37-
void SourceRename(obs_source_t *source, std::string newName,
38-
std::string prevName);
37+
void SourceRename(obs_source_t *source);
3938
void CleanupSourceHandlers();
4039

4140
private:

src/quick-access-utility.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,11 @@ void QuickAccessUtility::SourceRename(void *data, calldata_t *params)
7575
UNUSED_PARAMETER(data);
7676
obs_source_t *source =
7777
static_cast<obs_source_t *>(calldata_ptr(params, "source"));
78-
std::string newName = calldata_string(params, "new_name");
79-
std::string prevName = calldata_string(params, "prev_name");
8078
QMetaObject::invokeMethod(
81-
QCoreApplication::instance()->thread(),
82-
[source, newName, prevName]() {
79+
QCoreApplication::instance()->thread(), [source]() {
8380
for (auto &dock : qau->_docks) {
8481
if (dock) {
85-
dock->SourceRename(source, newName,
86-
prevName);
82+
dock->SourceRename(source);
8783
}
8884
}
8985
});

src/quick-access.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,8 +1024,7 @@ void QuickAccess::RemoveNullSources()
10241024
blog(LOG_INFO, "SIZE OF LIST AFTER: %i", _sourceList->count());
10251025
}
10261026

1027-
void QuickAccess::SourceRename(obs_source_t *source, std::string newName,
1028-
std::string prevName)
1027+
void QuickAccess::SourceRename(obs_source_t *source)
10291028
{
10301029
for (int i = 0; i < _sourceList->count(); i++) {
10311030
QListWidgetItem *item = _sourceList->item(i);

src/quick-access.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ class QuickAccess : public QListWidget {
120120
static void ItemRemovedFromScene(void *data, calldata_t *params);
121121

122122
void RemoveNullSources();
123-
void SourceRename(obs_source_t *source, std::string newName,
124-
std::string prevName);
123+
void SourceRename(obs_source_t *source);
125124

126125
private:
127126
QuickAccessDock *_dock;

0 commit comments

Comments
 (0)