Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
b3dcabb9
Commit
b3dcabb9
authored
3 years ago
by
Sébastien Blin
Committed by
Aline Gondim Santos
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
utils: remove dead code
Change-Id: Ifa610f3a110c050e22b6a83c79c0a94644ee82e1
parent
cab0ccc7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/utils.cpp
+0
-22
0 additions, 22 deletions
src/utils.cpp
src/utils.h
+0
-1
0 additions, 1 deletion
src/utils.h
with
0 additions
and
23 deletions
src/utils.cpp
+
0
−
22
View file @
b3dcabb9
...
...
@@ -765,28 +765,6 @@ Utils::setupQRCode(QString ringID, int margin)
return
result
;
}
QString
Utils
::
formattedTime
(
int
duration
)
{
if
(
duration
==
0
)
return
{};
std
::
string
formattedString
;
auto
minutes
=
duration
/
60
;
auto
seconds
=
duration
%
60
;
if
(
minutes
>
0
)
{
formattedString
+=
std
::
to_string
(
minutes
)
+
":"
;
if
(
formattedString
.
length
()
==
2
)
{
formattedString
=
"0"
+
formattedString
;
}
}
else
{
formattedString
+=
"00:"
;
}
if
(
seconds
<
10
)
formattedString
+=
"0"
;
formattedString
+=
std
::
to_string
(
seconds
);
return
QString
::
fromStdString
(
formattedString
);
}
QByteArray
Utils
::
QByteArrayFromFile
(
const
QString
&
filename
)
{
...
...
This diff is collapsed.
Click to expand it.
src/utils.h
+
0
−
1
View file @
b3dcabb9
...
...
@@ -116,7 +116,6 @@ bool isImage(const QString& fileExt);
QString
generateUid
();
// Misc
QString
formattedTime
(
int
seconds
);
QString
humanFileSize
(
qint64
fileSize
);
}
// namespace Utils
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment