directory: remove unused updateMp3Directory() function
It hasn't been used in many years
  commit 3a89afdd80
  Author: Warren Dukes <warren.dukes@gmail.com>
  Date:   Sat Nov 20 20:28:32 2004 +0000
      remove --update-db option
      (SVN r2719)
			
			
This commit is contained in:
		 Eric Wong
					Eric Wong
				
			
				
					committed by
					
						 Max Kellermann
						Max Kellermann
					
				
			
			
				
	
			
			
			 Max Kellermann
						Max Kellermann
					
				
			
						parent
						
							27fad52c6b
						
					
				
				
					commit
					afe6ce7210
				
			| @@ -1135,24 +1135,6 @@ int readDirectoryDB(void) | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| void updateMp3Directory(void) | ||||
| { | ||||
| 	switch (updateDirectory(mp3rootDirectory)) { | ||||
| 	case 0: | ||||
| 		/* nothing updated */ | ||||
| 		return; | ||||
| 	case 1: | ||||
| 		if (writeDirectoryDB() < 0) | ||||
| 			exit(EXIT_FAILURE); | ||||
| 		break; | ||||
| 	default: | ||||
| 		/* something was updated and db should be written */ | ||||
| 		FATAL("problems updating music db\n"); | ||||
| 	} | ||||
|  | ||||
| 	return; | ||||
| } | ||||
|  | ||||
| static int traverseAllInSubDirectory(Directory * directory, | ||||
| 				     int (*forEachSong) (Song *, void *), | ||||
| 				     int (*forEachDir) (Directory *, void *), | ||||
|   | ||||
| @@ -60,8 +60,6 @@ int writeDirectoryDB(void); | ||||
|  | ||||
| int readDirectoryDB(void); | ||||
|  | ||||
| void updateMp3Directory(void); | ||||
|  | ||||
| Song *getSongFromDB(const char *file); | ||||
|  | ||||
| time_t getDbModTime(void); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user