[rkward/work/consolecompletion] rkward: Unused variables

Thomas Friedrichsmeier null at kde.org
Sun Jan 26 09:51:21 GMT 2020


Git commit 53e2b8ce4d889c7da2db2f44b953fe7b00febdd7 by Thomas Friedrichsmeier.
Committed on 25/01/2020 at 11:59.
Pushed by tfry into branch 'work/consolecompletion'.

Unused variables

M  +0    -1    rkward/rbackend/rkrinterface.cpp
M  +0    -1    rkward/windows/rkworkplace.cpp

https://commits.kde.org/rkward/53e2b8ce4d889c7da2db2f44b953fe7b00febdd7

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