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
be006b86
Commit
be006b86
authored
Jul 15, 2006
by
Avuton Olrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEANUP] Remove unused code
Fix whitespace->tabs Use static where possible git-svn-id:
https://svn.musicpd.org/mpd/trunk@4346
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
6b4fea8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
22 deletions
+1
-22
tag.c
src/tag.c
+1
-17
tag.h
src/tag.h
+0
-5
No files found.
src/tag.c
View file @
be006b86
...
...
@@ -493,7 +493,7 @@ void clearItemsFromMpdTag(MpdTag * tag, int type) {
}
}
void
clearMpdTag
(
MpdTag
*
tag
)
{
static
void
clearMpdTag
(
MpdTag
*
tag
)
{
int
i
;
for
(
i
=
0
;
i
<
tag
->
numOfItems
;
i
++
)
{
...
...
@@ -592,19 +592,3 @@ void addItemToMpdTagWithLen(MpdTag * tag, int itemType, char * value, int len) {
appendToTagItems
(
tag
,
itemType
,
value
,
len
);
}
char
*
getNextItemFromMpdTag
(
MpdTag
*
tag
,
int
itemType
,
int
*
last
)
{
int
i
=
0
;
if
(
last
&&
*
last
>=
0
)
i
=
*
last
+
1
;
for
(
i
=
0
;
i
<
tag
->
numOfItems
;
i
++
)
{
if
(
itemType
==
tag
->
items
[
i
].
type
)
{
if
(
last
)
*
last
=
i
;
return
tag
->
items
[
i
].
value
;
}
i
++
;
}
return
NULL
;
}
src/tag.h
View file @
be006b86
...
...
@@ -75,8 +75,6 @@ void initTagConfig();
void
clearItemsFromMpdTag
(
MpdTag
*
tag
,
int
itemType
);
void
clearMpdTag
(
MpdTag
*
tag
);
void
freeMpdTag
(
MpdTag
*
tag
);
void
addItemToMpdTagWithLen
(
MpdTag
*
tag
,
int
itemType
,
char
*
value
,
int
len
);
...
...
@@ -90,7 +88,4 @@ MpdTag * mpdTagDup(MpdTag * tag);
int
mpdTagsAreEqual
(
MpdTag
*
tag1
,
MpdTag
*
tag2
);
/* *last shoudl be initialzed to -1 before calling this function */
char
*
getNextItemFromMpdTag
(
MpdTag
*
tag
,
int
itemType
,
int
*
last
);
#endif
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