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
|
#endif
|
||||||
|
|
||||||
if (!created_log) {
|
if (!created_log)
|
||||||
create_log_file(logFile);
|
create_log_file(logFile);
|
||||||
created_log = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
MacPermissionStatus audio_permission =
|
MacPermissionStatus audio_permission =
|
||||||
|
@ -29,7 +29,7 @@ static QWidget *firstWidget(QLayoutItem *item)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
auto n = layout->count();
|
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));
|
widget = firstWidget(layout->itemAt(i));
|
||||||
if (widget)
|
if (widget)
|
||||||
return widget;
|
return widget;
|
||||||
@ -47,7 +47,6 @@ static QWidget *lastWidget(QLayoutItem *item)
|
|||||||
if (!layout)
|
if (!layout)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
auto n = layout->count();
|
|
||||||
for (auto i = layout->count(); i > 0; i--) {
|
for (auto i = layout->count(); i > 0; i--) {
|
||||||
widget = lastWidget(layout->itemAt(i - 1));
|
widget = lastWidget(layout->itemAt(i - 1));
|
||||||
if (widget)
|
if (widget)
|
||||||
|
@ -1266,7 +1266,6 @@ void SourceTree::dropEvent(QDropEvent *event)
|
|||||||
if (hasGroups) {
|
if (hasGroups) {
|
||||||
if (!itemBelow ||
|
if (!itemBelow ||
|
||||||
obs_sceneitem_get_group(scene, itemBelow) != dropGroup) {
|
obs_sceneitem_get_group(scene, itemBelow) != dropGroup) {
|
||||||
indicator = QAbstractItemView::BelowItem;
|
|
||||||
dropGroup = nullptr;
|
dropGroup = nullptr;
|
||||||
dropOnCollapsed = false;
|
dropOnCollapsed = false;
|
||||||
}
|
}
|
||||||
|
@ -455,7 +455,7 @@ void OBSBasic::AddTransition()
|
|||||||
obs_source_t *source = nullptr;
|
obs_source_t *source = nullptr;
|
||||||
int i = 1;
|
int i = 1;
|
||||||
|
|
||||||
while ((source = FindTransition(QT_TO_UTF8(placeHolderText)))) {
|
while ((FindTransition(QT_TO_UTF8(placeHolderText)))) {
|
||||||
placeHolderText = format.arg(++i);
|
placeHolderText = format.arg(++i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4364,9 +4364,6 @@ void OBSBasic::ResetUI()
|
|||||||
bool studioPortraitLayout = config_get_bool(
|
bool studioPortraitLayout = config_get_bool(
|
||||||
GetGlobalConfig(), "BasicWindow", "StudioPortraitLayout");
|
GetGlobalConfig(), "BasicWindow", "StudioPortraitLayout");
|
||||||
|
|
||||||
bool labels = config_get_bool(GetGlobalConfig(), "BasicWindow",
|
|
||||||
"StudioModeLabels");
|
|
||||||
|
|
||||||
if (studioPortraitLayout)
|
if (studioPortraitLayout)
|
||||||
ui->previewLayout->setDirection(QBoxLayout::BottomToTop);
|
ui->previewLayout->setDirection(QBoxLayout::BottomToTop);
|
||||||
else
|
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)
|
static void DrawSquareAtPos(float x, float y, float pixelRatio)
|
||||||
{
|
{
|
||||||
OBSBasic *main = OBSBasic::Get();
|
|
||||||
|
|
||||||
struct vec3 pos;
|
struct vec3 pos;
|
||||||
vec3_set(&pos, x, y, 0.0f);
|
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,
|
static void DrawRotationHandle(gs_vertbuffer_t *circle, float rot,
|
||||||
float pixelRatio)
|
float pixelRatio)
|
||||||
{
|
{
|
||||||
OBSBasic *main = OBSBasic::Get();
|
|
||||||
|
|
||||||
struct vec3 pos;
|
struct vec3 pos;
|
||||||
vec3_set(&pos, 0.5f, 0.0f, 0.0f);
|
vec3_set(&pos, 0.5f, 0.0f, 0.0f);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user