]> git.cameronkatri.com Git - cgit.git/commitdiff
Remove unused parameter from cgit_print_snapshot()
authorLukas Fleischer <cgit@cryptocrack.de>
Sat, 8 Feb 2014 13:37:29 +0000 (14:37 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 21 Feb 2014 17:19:00 +0000 (18:19 +0100)
cmd.c
ui-snapshot.c
ui-snapshot.h

diff --git a/cmd.c b/cmd.c
index cbd235c9163a55a64c20d0a574c6c7c3d7fe6625..188cd5681b16bfe728c6e71fedb90438782d218b 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -113,7 +113,7 @@ static void refs_fn(void)
 static void snapshot_fn(void)
 {
        cgit_print_snapshot(ctx.qry.head, ctx.qry.sha1, ctx.qry.path,
-                           ctx.repo->snapshots, ctx.qry.nohead);
+                           ctx.qry.nohead);
 }
 
 static void stats_fn(void)
index 582dc3103562d9cdbc7897de4af0807b788a9e4d..3107b055dbc00ff5ad785b90896165e5cd1dfbdc 100644 (file)
@@ -193,7 +193,7 @@ static void show_error(char *fmt, ...)
 }
 
 void cgit_print_snapshot(const char *head, const char *hex,
-                        const char *filename, int snapshots, int dwim)
+                        const char *filename, int dwim)
 {
        const struct cgit_snapshot_format* f;
        char *prefix = NULL;
index b6ede5225a847c57ae734f1d59f875994a94c571..a8deec3697b486e39c750df96f5b3e6b4b91c34d 100644 (file)
@@ -2,6 +2,6 @@
 #define UI_SNAPSHOT_H
 
 extern void cgit_print_snapshot(const char *head, const char *hex,
-                               const char *filename, int snapshot, int dwim);
+                               const char *filename, int dwim);
 
 #endif /* UI_SNAPSHOT_H */