aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgit.h2
-rw-r--r--ui-diff.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/cgit.h b/cgit.h
index 0c1585d..0eb5ed5 100644
--- a/cgit.h
+++ b/cgit.h
@@ -53,7 +53,7 @@ typedef void (*filepair_fn)(struct diff_filepair *pair);
typedef void (*linediff_fn)(char *line, int len);
typedef enum {
- DIFF_UNIFIED, DIFF_SSDIFF, DIFF_STATONLY
+ DIFF_UNIFIED, DIFF_SSDIFF
} diff_type;
typedef enum {
diff --git a/ui-diff.c b/ui-diff.c
index bf2ec57..a4ade4d 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -349,7 +349,6 @@ void cgit_print_diff_ctrls()
curr = ctx.qry.has_difftype ? ctx.qry.difftype : ctx.cfg.difftype;
html_intoption(0, "unified", curr);
html_intoption(1, "ssdiff", curr);
- html_intoption(2, "stat only", curr);
html("</select></td></tr>");
html("<tr><td/><td class='ctrl'>");
html("<noscript><input type='submit' value='reload'/></noscript>");
@@ -430,9 +429,6 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
cgit_print_diffstat(old_rev_sha1, new_rev_sha1, prefix);
- if (difftype == DIFF_STATONLY)
- return;
-
if (use_ssdiff) {
html("<table summary='ssdiff' class='ssdiff'>");
} else {