[rkward] rkward: Unused variables
Thomas Friedrichsmeier
null at kde.org
Tue Jan 28 17:03:09 GMT 2020
Git commit 40f52b645b898b81bdf29d540ab7ea68960d38d6 by Thomas Friedrichsmeier.
Committed on 28/01/2020 at 16:58.
Pushed by tfry into branch 'master'.
Unused variables
M +0 -1 rkward/rbackend/rkrinterface.cpp
M +0 -1 rkward/windows/rkworkplace.cpp
https://commits.kde.org/rkward/40f52b645b898b81bdf29d540ab7ea68960d38d6
diff --git a/rkward/rbackend/rkrinterface.cpp b/rkward/rbackend/rkrinterface.cpp
index 1de01c4c..877b9d0d 100644
--- a/rkward/rbackend/rkrinterface.cpp
+++ b/rkward/rbackend/rkrinterface.cpp
@@ -785,7 +785,6 @@ void RInterface::processRBackendRequest (RBackendRequest *request) {
QDialog* dialog = new QDialog ();
dialog->setResult (-1); // We use this to stand for cancelled
QDialogButtonBox *button_box = new QDialogButtonBox (dialog);
- QPushButton *button;
int button_count = 0;
button_count += addButtonToBox (dialog, button_box, QDialogButtonBox::Yes, button_yes, "yes", def_button == button_yes);
button_count += addButtonToBox (dialog, button_box, QDialogButtonBox::No, button_no, "no", def_button == button_no);
diff --git a/rkward/windows/rkworkplace.cpp b/rkward/windows/rkworkplace.cpp
index 8614c3e7..657d96d9 100644
--- a/rkward/windows/rkworkplace.cpp
+++ b/rkward/windows/rkworkplace.cpp
@@ -480,7 +480,6 @@ RKMDIWindow* RKWorkplace::openHelpWindow (const QUrl &url, bool only_once) {
}
// if we're working with a window hint, try to _reuse_ the existing window, even if it did not get found, above
if (!window_name_override.isEmpty ()) {
- int pos = -1;
for (int i = 0; i < named_windows.size (); ++i) {
if (named_windows[i].id == window_name_override) {
RKHTMLWindow *w = dynamic_cast<RKHTMLWindow*> (named_windows[i].window);
More information about the rkward-tracker
mailing list