Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
mhwd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
mhwd
Commits
eb5b10d9
Commit
eb5b10d9
authored
Jun 28, 2015
by
Łukasz Matysiak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code
parent
d11d4500
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
src/Data.cpp
src/Data.cpp
+0
-22
src/Data.hpp
src/Data.hpp
+0
-1
No files found.
src/Data.cpp
View file @
eb5b10d9
...
...
@@ -462,28 +462,6 @@ Vita::string Data::getRightConfigPath(Vita::string str, Vita::string baseConfigP
return
baseConfigPath
+
"/"
+
str
;
}
std
::
vector
<
std
::
string
>
Data
::
splitValue
(
Vita
::
string
str
,
Vita
::
string
onlyEnding
)
{
std
::
vector
<
Vita
::
string
>
work
{
str
.
toLower
().
explode
(
" "
)};
std
::
vector
<
std
::
string
>
final
;
for
(
auto
&&
iterator
=
work
.
begin
();
iterator
!=
work
.
end
();
iterator
++
)
{
if
((
""
!=
*
iterator
)
&&
onlyEnding
.
empty
())
{
final
.
push_back
(
*
iterator
);
}
else
if
((
""
!=
*
iterator
)
&&
(
Vita
::
string
(
*
iterator
).
explode
(
"."
).
back
()
==
onlyEnding
)
&&
((
*
iterator
).
size
()
>
5
))
{
final
.
push_back
(
Vita
::
string
(
*
iterator
).
substr
(
0
,
(
*
iterator
).
size
()
-
5
));
}
}
return
final
;
}
void
Data
::
updateConfigData
()
{
// Clear config vectors in each device element
...
...
src/Data.hpp
View file @
eb5b10d9
...
...
@@ -88,7 +88,6 @@ private:
std
::
string
onlyFilename
=
""
);
Vita
::
string
getRightConfigPath
(
Vita
::
string
str
,
Vita
::
string
baseConfigPath
);
std
::
vector
<
std
::
string
>
splitValue
(
Vita
::
string
str
,
Vita
::
string
onlyEnding
=
""
);
void
updateConfigData
();
Vita
::
string
from_Hex
(
uint16_t
hexnum
,
int
fill
);
...
...
Write
Preview
Markdown
is supported
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