From d9994f114b1febf4c075d77c0fb3e7a44e510e20 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Oct 2012 17:42:43 +0300 Subject: Fix code style and some minor issues. --- src/gui/okdialog.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gui/okdialog.cpp') diff --git a/src/gui/okdialog.cpp b/src/gui/okdialog.cpp index 1eda1d8c9..0a0c32baa 100644 --- a/src/gui/okdialog.cpp +++ b/src/gui/okdialog.cpp @@ -49,9 +49,6 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg, Button *const okButton = new Button(this, _("OK"), "ok", this); - const int numRows = mTextBox->getNumberOfRows(); - const int fontHeight = getFont()->getHeight(); - const int height = numRows * fontHeight; int width = getFont()->getWidth(title); if (width < mTextBox->getMinWidth()) -- cgit v1.2.3-70-g09d2