Remove unused function get_filename_ext

This function had been copied 100% out of the stackoverflow answer
https://stackoverflow.com/a/24976006
This commit is contained in:
Benedikt Heine 2018-10-31 13:54:08 +01:00
parent a24a464fbc
commit 9cd600f0bf

View File

@ -15,13 +15,6 @@ static bool is_readable_file(const char *filename)
return (access(filename, R_OK) != -1);
}
const char *get_filename_ext(const char *filename)
{
const char *dot = strrchr(filename, '.');
if (!dot || dot == filename) return "";
return dot + 1;
}
static cairo_status_t read_from_buf(void *closure, unsigned char *data, unsigned int size)
{
GByteArray *buf = (GByteArray *)closure;