Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
44a6c489
Commit
44a6c489
authored
Jan 29, 2021
by
Alexander Lohnau
💬
Browse files
Remove unused variables
parent
a8549e7a
Changes
10
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletreeplugin.cpp
View file @
44a6c489
...
...
@@ -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
);
...
...
addons/snippets/snippetrepository.cpp
View file @
44a6c489
...
...
@@ -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
))
{
...
...
addons/symbolviewer/bash_parser.cpp
View file @
44a6c489
...
...
@@ -18,7 +18,6 @@ void KatePluginSymbolViewerView::parseBashSymbols(void)
}
QString
currline
;
QString
funcStr
(
QStringLiteral
(
"function "
));
int
i
;
// bool mainprog;
...
...
addons/symbolviewer/perl_parser.cpp
View file @
44a6c489
...
...
@@ -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
);
...
...
addons/symbolviewer/php_parser.cpp
View file @
44a6c489
...
...
@@ -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="")”
...
...
addons/symbolviewer/ruby_parser.cpp
View file @
44a6c489
...
...
@@ -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
;
...
...
addons/symbolviewer/xml_parser.cpp
View file @
44a6c489
...
...
@@ -25,7 +25,6 @@ void KatePluginSymbolViewerView::parseXMLSymbols(void)
m_struct
->
setText
(
i18n
(
"Show Tags"
));
QString
cl
;
QString
stripped
;
char
comment
=
0
;
int
i
;
...
...
addons/symbolviewer/xslt_parser.cpp
View file @
44a6c489
...
...
@@ -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
;
...
...
addons/tabswitcher/tests/tstestapp.cpp
View file @
44a6c489
...
...
@@ -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"
)));
...
...
addons/xmltools/plugin_katexmltools.cpp
View file @
44a6c489
...
...
@@ -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 )
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment