Skip to content
GitLab
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
3c62dd41
Commit
3c62dd41
authored
Sep 08, 2022
by
Waqar Ahmed
Browse files
Remove unused function
parent
92d59de1
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/git-blame/commitfilesview.cpp
View file @
3c62dd41
...
...
@@ -260,22 +260,6 @@ static void createFileTree(QStandardItem *parent, const QString &basePath, const
}
}
static
std
::
optional
<
QString
>
getGitCmdOutput
(
const
QString
&
workDir
,
const
QStringList
&
args
)
{
QProcess
git
;
if
(
!
setupGitProcess
(
git
,
workDir
,
args
))
{
return
{};
}
startHostProcess
(
git
,
QProcess
::
ReadOnly
);
if
(
git
.
waitForStarted
()
&&
git
.
waitForFinished
(
-
1
))
{
if
(
git
.
exitStatus
()
!=
QProcess
::
NormalExit
||
git
.
exitCode
()
!=
0
)
{
return
std
::
nullopt
;
}
return
{
QString
::
fromUtf8
(
git
.
readAllStandardOutput
().
trimmed
())};
}
return
{};
}
static
bool
getNum
(
const
QByteArray
&
numBytes
,
int
*
num
)
{
bool
res
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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