Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8c7d7dfa
Commit
8c7d7dfa
authored
Jan 02, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/upnp/Util: remove unused function csvToStrings()
parent
cdf615f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
Util.cxx
src/lib/upnp/Util.cxx
+0
-31
Util.hxx
src/lib/upnp/Util.hxx
+0
-4
No files found.
src/lib/upnp/Util.cxx
View file @
8c7d7dfa
...
...
@@ -102,34 +102,3 @@ stringToTokens(const std::string &str,
return
tokens
;
}
template
<
class
T
>
bool
csvToStrings
(
const
char
*
s
,
T
&
tokens
)
noexcept
{
assert
(
tokens
.
empty
());
std
::
string
current
;
while
(
true
)
{
char
ch
=
*
s
++
;
if
(
ch
==
0
)
{
tokens
.
emplace_back
(
std
::
move
(
current
));
return
true
;
}
if
(
ch
==
'\\'
)
{
ch
=
*
s
++
;
if
(
ch
==
0
)
return
false
;
}
else
if
(
ch
==
','
)
{
tokens
.
emplace_back
(
std
::
move
(
current
));
current
.
clear
();
continue
;
}
current
.
push_back
(
ch
);
}
}
template
bool
csvToStrings
<
std
::
list
<
std
::
string
>>
(
const
char
*
,
std
::
list
<
std
::
string
>
&
)
noexcept
;
src/lib/upnp/Util.hxx
View file @
8c7d7dfa
...
...
@@ -35,8 +35,4 @@ gcc_pure
std
::
list
<
std
::
string
>
stringToTokens
(
const
std
::
string
&
str
,
char
delim
)
noexcept
;
template
<
class
T
>
bool
csvToStrings
(
const
char
*
s
,
T
&
tokens
)
noexcept
;
#endif
/* _UPNPP_H_X_INCLUDED_ */
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