From f0b1f0a5610656369e5741fec61300d59fa259a2 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 10 Apr 2015 11:57:15 -0700 Subject: [PATCH] Remove unused code --- src/ui/MainWindow.cc | 35 ----------------------------------- src/ui/MainWindow.h | 3 --- 2 files changed, 38 deletions(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 38f581a..6c7e107 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -784,41 +784,6 @@ void MainWindow::configureWindowName() setWindowTitle(windowname); } -// TODO: This is not used -void MainWindow::startVideoCapture() -{ - // TODO: What is this? What kind of "Video" is saved to bmp? - QString format("bmp"); - QString initialPath = QDir::currentPath() + tr("/untitled.") + format; - _screenFileName = QGCFileDialog::getSaveFileName( - this, tr("Save Video Capture"), - initialPath, - tr("%1 Files (*.%2);;All Files (*)") - .arg(format.toUpper()) - .arg(format), - format); - delete videoTimer; - videoTimer = new QTimer(this); -} - -// TODO: This is not used -void MainWindow::stopVideoCapture() -{ - videoTimer->stop(); - // TODO Convert raw images to PNG -} - -// TODO: This is not used -void MainWindow::saveScreen() -{ - QPixmap window = QPixmap::grabWindow(this->winId()); - QString format = "bmp"; - if (!_screenFileName.isEmpty()) - { - window.save(_screenFileName, format.toLatin1()); - } -} - void MainWindow::enableAutoReconnect(bool enabled) { _autoReconnect = enabled; diff --git a/src/ui/MainWindow.h b/src/ui/MainWindow.h index 4e9e38f..f3e0883 100644 --- a/src/ui/MainWindow.h +++ b/src/ui/MainWindow.h @@ -139,9 +139,6 @@ public slots: void UASDeleted(UASInterface* uas); /** @brief Update system specs of a UAS */ void UASSpecsChanged(int uas); - void startVideoCapture(); - void stopVideoCapture(); - void saveScreen(); void handleMisconfiguration(UASInterface* uas); /** @brief Load configuration views */