summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/utils.c b/src/utils.c
index d625fed..5391e6d 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -207,51 +207,3 @@ checkNumber (char *num)
return number;
}
-
-void
-printVideoInfo (char *format, Video *videos, int numberOfVideos)
-{
- if (format != NULL && strlen (format) > 0)
- {
- for (int i = 0; i < numberOfVideos; i++)
- {
- for (int j = 0; j < strlen (format); j++)
- {
- switch (format[j])
- {
- case 'a':
- printf ("%s", videos[i].author);
- break;
- case 'd':
- printf ("%s", videos[i].duration);
- break;
- case 'i':
- printf ("%s", videos[i].id);
- break;
- case 't':
- printf ("%s", videos[i].title);
- break;
- case 'R':
- printf ("\n");
- break;
- case 'T':
- printf ("\t");
- break;
- default:
- if (!isalpha (format[j]))
- {
- printf ("%c", format[j]);
- }
- }
- }
- printf ("\n");
- }
- }
- else
- {
- for (int i = 0; i < numberOfVideos; i++)
- {
- printf ("%s\t%s\n", videos[i].id, videos[i].title);
- }
- }
-}