1
0
Эх сурвалжийг харах

UI: Remove unused Qt crash reporter code

The crash reporter made with Qt was introduced in 824c7b0, but then was
quickly replaced by a native OS implementation in d42a7ce. This code has
been lying around ever since.
gxalpha 2 жил өмнө
parent
commit
c24ec240af

+ 0 - 2
UI/CMakeLists.txt

@@ -134,8 +134,6 @@ target_sources(
           api-interface.cpp
           auth-base.cpp
           auth-base.hpp
-          crash-report.cpp
-          crash-report.hpp
           display-helpers.hpp
           platform.hpp
           qt-display.cpp

+ 0 - 51
UI/crash-report.cpp

@@ -1,51 +0,0 @@
-#include "crash-report.hpp"
-#include <QApplication>
-#include <QFontDatabase>
-#include <QPushButton>
-#include <QVBoxLayout>
-#include <QHBoxLayout>
-#include <QClipboard>
-#include "qt-wrappers.hpp"
-#include "plain-text-edit.hpp"
-
-OBSCrashReport::OBSCrashReport(QWidget *parent, const char *text)
-	: QDialog(parent)
-{
-	QPushButton *copyButton = new QPushButton;
-	copyButton->setText("Copy crash log");
-
-	QPushButton *exitButton = new QPushButton;
-	exitButton->setText("Exit");
-
-	textBox = new OBSPlainTextEdit;
-	textBox->setPlainText(QT_UTF8(text));
-	textBox->setLineWrapMode(QPlainTextEdit::NoWrap);
-
-	QHBoxLayout *buttonLayout = new QHBoxLayout;
-	buttonLayout->addWidget(copyButton);
-	buttonLayout->addWidget(exitButton);
-
-	QVBoxLayout *mainLayout = new QVBoxLayout;
-	mainLayout->addWidget(textBox);
-	mainLayout->addItem(buttonLayout);
-
-	setLayout(mainLayout);
-
-	QWidget::connect(copyButton, SIGNAL(clicked()), this,
-			 SLOT(CopyClicked()));
-	QWidget::connect(exitButton, SIGNAL(clicked()), this,
-			 SLOT(ExitClicked()));
-
-	resize(800, 600);
-	setWindowTitle("Oops, OBS has crashed!");
-}
-
-void OBSCrashReport::ExitClicked()
-{
-	exit(-1);
-}
-
-void OBSCrashReport::CopyClicked()
-{
-	QApplication::clipboard()->setText(textBox->toPlainText());
-}

+ 0 - 18
UI/crash-report.hpp

@@ -1,18 +0,0 @@
-#pragma once
-
-#include <QDialog>
-
-class OBSPlainTextEdit;
-
-class OBSCrashReport : public QDialog {
-	Q_OBJECT
-
-	OBSPlainTextEdit *textBox;
-
-public:
-	OBSCrashReport(QWidget *parent, const char *text);
-
-public slots:
-	void ExitClicked();
-	void CopyClicked();
-};

+ 0 - 1
UI/obs-app.cpp

@@ -47,7 +47,6 @@
 #include "window-permissions.hpp"
 #endif
 #include "window-basic-settings.hpp"
-#include "crash-report.hpp"
 #include "platform.hpp"
 
 #include <fstream>