Commit b4945959 authored by Avuton Olrich's avatar Avuton Olrich

[CLEANUP] Remove unused function

Remove unused functions from the header, static where possible Cleanup whitespace->tabs git-svn-id: https://svn.musicpd.org/mpd/trunk@4341 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent e4b0fcf8
...@@ -171,7 +171,6 @@ int updateInit(FILE * fp, List * pathList) { ...@@ -171,7 +171,6 @@ int updateInit(FILE * fp, List * pathList) {
if(directory_updatePid==0) { if(directory_updatePid==0) {
/* child */ /* child */
int dbUpdated = 0; int dbUpdated = 0;
/* clearPlayerPid(); */
unblockSignals(); unblockSignals();
......
...@@ -102,29 +102,17 @@ int playerInit() { ...@@ -102,29 +102,17 @@ int playerInit() {
return 0; return 0;
} }
int playerInitReal() { static int playerInitReal() {
int player_pid; int player_pid;
blockSignals(); blockSignals();
player_pid = fork(); player_pid = fork();
if(player_pid==0) { if(player_pid==0) {
PlayerControl * pc = &(getPlayerData()->playerControl); PlayerControl * pc = &(getPlayerData()->playerControl);
/* clearUpdatePid(); */
unblockSignals(); unblockSignals();
setSigHandlersForDecoder(); setSigHandlersForDecoder();
/*
closeAllListenSockets();
freeAllInterfaces();
closeMp3Directory();
finishPlaylist();
finishPermissions();
finishCommands();
finishVolume();
*/
while(1) { while(1) {
if(pc->play) decode(); if(pc->play) decode();
else if(pc->stop) pc->stop = 0; else if(pc->stop) pc->stop = 0;
...@@ -173,16 +161,6 @@ int playerPlay(FILE * fp, Song * song) { ...@@ -173,16 +161,6 @@ int playerPlay(FILE * fp, Song * song) {
if(playerStop(fp)<0) return -1; if(playerStop(fp)<0) return -1;
/*{
struct stat st;
if(stat(rmp2amp(utf8ToFsCharset(utf8file)),&st)<0) {
strncpy(pc->erroredFile,pc->file,MAXPATHLEN);
pc->erroredFile[MAXPATHLEN] = '\0';
pc->error = PLAYER_ERROR_FILENOTFOUND;
return 0;
}
}*/
if(song->tag) pc->fileTime = song->tag->time; if(song->tag) pc->fileTime = song->tag->time;
else pc->fileTime = 0; else pc->fileTime = 0;
...@@ -433,12 +411,6 @@ void setPlayerSoftwareVolume(int volume) { ...@@ -433,12 +411,6 @@ void setPlayerSoftwareVolume(int volume) {
pc->softwareVolume = volume; pc->softwareVolume = volume;
} }
int getPlayerSoftwareVolume() {
PlayerControl * pc = &(getPlayerData()->playerControl);
return pc->softwareVolume;
}
double getPlayerTotalPlayTime() { double getPlayerTotalPlayTime() {
PlayerControl * pc = &(getPlayerData()->playerControl); PlayerControl * pc = &(getPlayerData()->playerControl);
......
...@@ -89,8 +89,6 @@ typedef struct _PlayerControl { ...@@ -89,8 +89,6 @@ typedef struct _PlayerControl {
MetadataChunk fileMetadataChunk; MetadataChunk fileMetadataChunk;
} PlayerControl; } PlayerControl;
void clearPlayerPid();
void player_sigChldHandler(int pid, int status); void player_sigChldHandler(int pid, int status);
int playerPlay(FILE * fp, Song * song); int playerPlay(FILE * fp, Song * song);
...@@ -105,8 +103,6 @@ void playerCloseAudio(); ...@@ -105,8 +103,6 @@ void playerCloseAudio();
void playerKill(); void playerKill();
void playerProcessMessages();
int getPlayerTotalTime(); int getPlayerTotalTime();
int getPlayerElapsedTime(); int getPlayerElapsedTime();
...@@ -139,8 +135,6 @@ void setPlayerCrossFade(float crossFadeInSeconds); ...@@ -139,8 +135,6 @@ void setPlayerCrossFade(float crossFadeInSeconds);
float getPlayerCrossFade(); float getPlayerCrossFade();
int getPlayerSoftwareVolume();
void setPlayerSoftwareVolume(int volume); void setPlayerSoftwareVolume(int volume);
double getPlayerTotalPlayTime(); double getPlayerTotalPlayTime();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment