remove unused function and typedef (#199)

byteorder_t and size_readable is not used anywhere within the code.

byteorder_t seems to be a remain from some time sxiv handled exif data itself instead of relying on a library, introduced in 691c6d7, and probably became irrelevant when libexif was added as dependency again. And size_readable from some time it displayed the file size in the window title, introduced in bad9a70.
This commit is contained in:
N-R-K
2022-01-03 02:13:23 +06:00
committed by GitHub
parent 0f3766eaab
commit f7145db7f8
2 changed files with 0 additions and 16 deletions

10
util.c
View File

@ -79,16 +79,6 @@ void error(int eval, int err, const char* fmt, ...)
exit(eval);
}
void size_readable(float *size, const char **unit)
{
const char *units[] = { "", "K", "M", "G" };
unsigned int i;
for (i = 0; i < ARRLEN(units) && *size > 1024.0; i++)
*size /= 1024.0;
*unit = units[MIN(i, ARRLEN(units) - 1)];
}
int r_opendir(r_dir_t *rdir, const char *dirname, bool recursive)
{
if (*dirname == '\0')