Commit 44a6c489 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Remove unused variables

parent a8549e7a
......@@ -326,8 +326,6 @@ void KateFileTreePluginView::viewChanged(KTextEditor::View *)
KTextEditor::Document *doc = view->document();
QModelIndex index = m_proxyModel->docIndex(doc);
QString display = m_proxyModel->data(index, Qt::DisplayRole).toString();
// update the model on which doc is active
m_documentModel->documentActivated(doc);
......
......@@ -220,7 +220,6 @@ void SnippetRepository::save()
QString outname = dir.absoluteFilePath(fi.fileName());
if (m_file != outname) {
QFileInfo fiout(outname);
// there could be cases that new new name clashes with a global file, but I guess it is not that often.
int i = 0;
while (QFile::exists(outname)) {
......
......@@ -18,7 +18,6 @@ void KatePluginSymbolViewerView::parseBashSymbols(void)
}
QString currline;
QString funcStr(QStringLiteral("function "));
int i;
// bool mainprog;
......
......@@ -22,7 +22,6 @@ void KatePluginSymbolViewerView::parsePerlSymbols(void)
m_struct->setText(i18n("Show Pragmas"));
m_func->setText(i18n("Show Subroutines"));
QString cl; // Current Line
QString stripped;
char comment = 0;
QPixmap cls(class_xpm);
QPixmap sct(struct_xpm);
......
......@@ -77,7 +77,6 @@ void KatePluginSymbolViewerView::parsePhpSymbols(void)
// function args detection: “function a($b, $c=null)” => “$b, $v”
QRegExp functionArgsRegExp(QLatin1String("(\\$[\\w_]+)"), Qt::CaseInsensitive);
QStringList functionArgsList;
QString functionArgs;
QString nameWithTypes;
// replace literals by empty strings: “function a($b='nothing', $c="pretty \"cool\" string")” => “function ($b='', $c="")”
......
......@@ -25,7 +25,6 @@ void KatePluginSymbolViewerView::parseRubySymbols(void)
QString cl; // Current Line
QPixmap cls(class_xpm);
QPixmap mtd(method_xpm);
QPixmap mcr(macro_xpm);
int i;
QString name;
......
......@@ -25,7 +25,6 @@ void KatePluginSymbolViewerView::parseXMLSymbols(void)
m_struct->setText(i18n("Show Tags"));
QString cl;
QString stripped;
char comment = 0;
int i;
......
......@@ -24,7 +24,6 @@ void KatePluginSymbolViewerView::parseXsltSymbols(void)
m_func->setText(i18n("Show Templates"));
QString cl; // Current Line
QString stripped;
char comment = 0;
char templ = 0;
......
......@@ -49,7 +49,6 @@ public:
void set_items_cutoff_bug()
{
model.clear();
auto icon = QIcon::fromTheme(QLatin1String("document-export"));
model.insertDocument(model.rowCount(), addDoc(QStringLiteral("/home/gregor/logs/notifications/multimedia-system.log")));
model.insertDocument(model.rowCount(), addDoc(QStringLiteral("/home/gregor/dev/src/kservicemenueditor-0.2a/servicemenueditor")));
......@@ -102,7 +101,6 @@ TsTestApp::TsTestApp(QWidget *parent)
impl_->treeview1->setHeaderHidden(true);
impl_->treeview1->setRootIsDecorated(false);
auto icon = QIcon::fromTheme(QLatin1String("edit-undo"));
impl_->model.insertDocument(impl_->model.rowCount(), addDoc(QStringLiteral("/home/gm/projects/proj1/src/file1.h")));
impl_->model.insertDocument(impl_->model.rowCount(), addDoc(QStringLiteral("/home/gm/projects/proj1/src/file2.cpp")));
impl_->model.insertDocument(impl_->model.rowCount(), addDoc(QStringLiteral("/home/gm/dev/file3.py")));
......
......@@ -632,7 +632,6 @@ void PluginKateXMLToolsCompletionModel::executeCompletionItem(KTextEditor::View
int line, col;
view->cursorPosition().position(line, col);
QString lineStr = document->line(line);
QString leftCh = lineStr.mid(col - 1, 1);
QString rightCh = lineStr.mid(col, 1);
int posCorrection = 0; // where to move the cursor after completion ( >0 = move right )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment