mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
UI: Remove unused assignments
This commit is contained in:
parent
e2db9b7f70
commit
daee83373c
|
@ -2284,10 +2284,8 @@ static int run_program(fstream &logFile, int argc, char *argv[])
|
|||
}
|
||||
#endif
|
||||
|
||||
if (!created_log) {
|
||||
if (!created_log)
|
||||
create_log_file(logFile);
|
||||
created_log = true;
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
MacPermissionStatus audio_permission =
|
||||
|
|
|
@ -29,7 +29,7 @@ static QWidget *firstWidget(QLayoutItem *item)
|
|||
return nullptr;
|
||||
|
||||
auto n = layout->count();
|
||||
for (auto i = 0, n = layout->count(); i < n; i++) {
|
||||
for (auto i = 0; i < n; i++) {
|
||||
widget = firstWidget(layout->itemAt(i));
|
||||
if (widget)
|
||||
return widget;
|
||||
|
@ -47,7 +47,6 @@ static QWidget *lastWidget(QLayoutItem *item)
|
|||
if (!layout)
|
||||
return nullptr;
|
||||
|
||||
auto n = layout->count();
|
||||
for (auto i = layout->count(); i > 0; i--) {
|
||||
widget = lastWidget(layout->itemAt(i - 1));
|
||||
if (widget)
|
||||
|
|
|
@ -1266,7 +1266,6 @@ void SourceTree::dropEvent(QDropEvent *event)
|
|||
if (hasGroups) {
|
||||
if (!itemBelow ||
|
||||
obs_sceneitem_get_group(scene, itemBelow) != dropGroup) {
|
||||
indicator = QAbstractItemView::BelowItem;
|
||||
dropGroup = nullptr;
|
||||
dropOnCollapsed = false;
|
||||
}
|
||||
|
|
|
@ -455,7 +455,7 @@ void OBSBasic::AddTransition()
|
|||
obs_source_t *source = nullptr;
|
||||
int i = 1;
|
||||
|
||||
while ((source = FindTransition(QT_TO_UTF8(placeHolderText)))) {
|
||||
while ((FindTransition(QT_TO_UTF8(placeHolderText)))) {
|
||||
placeHolderText = format.arg(++i);
|
||||
}
|
||||
|
||||
|
|
|
@ -4364,9 +4364,6 @@ void OBSBasic::ResetUI()
|
|||
bool studioPortraitLayout = config_get_bool(
|
||||
GetGlobalConfig(), "BasicWindow", "StudioPortraitLayout");
|
||||
|
||||
bool labels = config_get_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"StudioModeLabels");
|
||||
|
||||
if (studioPortraitLayout)
|
||||
ui->previewLayout->setDirection(QBoxLayout::BottomToTop);
|
||||
else
|
||||
|
|
|
@ -1718,8 +1718,6 @@ static void DrawLine(float x1, float y1, float x2, float y2, float thickness,
|
|||
|
||||
static void DrawSquareAtPos(float x, float y, float pixelRatio)
|
||||
{
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
|
||||
struct vec3 pos;
|
||||
vec3_set(&pos, x, y, 0.0f);
|
||||
|
||||
|
@ -1743,8 +1741,6 @@ static void DrawSquareAtPos(float x, float y, float pixelRatio)
|
|||
static void DrawRotationHandle(gs_vertbuffer_t *circle, float rot,
|
||||
float pixelRatio)
|
||||
{
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
|
||||
struct vec3 pos;
|
||||
vec3_set(&pos, 0.5f, 0.0f, 0.0f);
|
||||
|
||||
|
|
Loading…
Reference in a new issue