Mercurial > hg > xmms-sid
comparison src/xs_title.c @ 763:61a527ac3baa
Cleanups, remove useless function.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Nov 2012 22:39:12 +0200 |
parents | 55eea3fa8868 |
children | be2a8436461a |
comparison
equal
deleted
inserted
replaced
762:03c5cde1dfbb | 763:61a527ac3baa |
---|---|
29 { | 29 { |
30 gchar *tmpStr; | 30 gchar *tmpStr; |
31 | 31 |
32 /* Split the filename into path */ | 32 /* Split the filename into path */ |
33 *tmpFilePath = g_strdup(path); | 33 *tmpFilePath = g_strdup(path); |
34 tmpStr = xs_strrchr(*tmpFilePath, '/'); | 34 tmpStr = strrchr(*tmpFilePath, '/'); |
35 if (tmpStr) tmpStr[1] = 0; | 35 if (tmpStr) tmpStr[1] = 0; |
36 | 36 |
37 /* Filename */ | 37 /* Filename */ |
38 *tmpFilename = xs_strrchr(path, '/'); | 38 *tmpFilename = strrchr(path, '/'); |
39 if (*tmpFilename) | 39 if (*tmpFilename) |
40 *tmpFilename = g_strdup(*tmpFilename + 1); | 40 *tmpFilename = g_strdup(*tmpFilename + 1); |
41 else | 41 else |
42 *tmpFilename = g_strdup(path); | 42 *tmpFilename = g_strdup(path); |
43 | 43 |
44 tmpStr = xs_strrchr(*tmpFilename, '.'); | 44 tmpStr = strrchr(*tmpFilename, '.'); |
45 tmpStr[0] = 0; | 45 tmpStr[0] = 0; |
46 | 46 |
47 /* Extension */ | 47 /* Extension */ |
48 *tmpFileExt = xs_strrchr(path, '.'); | 48 *tmpFileExt = strrchr(path, '.'); |
49 } | 49 } |
50 | 50 |
51 | 51 |
52 /* Create a title string based on given information and settings. | 52 /* Create a title string based on given information and settings. |
53 */ | 53 */ |