From 30e235662251d24e855ef12eaf9a5a338fbe5d65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bert=20M=C3=BCnnich?= <ber.t@posteo.de>
Date: Thu, 7 Dec 2017 14:16:32 +0100
Subject: [PATCH] Remove obsolete files[].base

---
 main.c | 5 -----
 sxiv.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/main.c b/main.c
index a2c37e2..aa25015 100644
--- a/main.c
+++ b/main.c
@@ -103,7 +103,6 @@ void cleanup(void)
 void check_add_file(char *filename, bool given)
 {
 	char *path;
-	const char *bn;
 
 	if (*filename == '\0')
 		return;
@@ -124,10 +123,6 @@ void check_add_file(char *filename, bool given)
 
 	files[fileidx].name = estrdup(filename);
 	files[fileidx].path = path;
-	if ((bn = strrchr(files[fileidx].name , '/')) != NULL && bn[1] != '\0')
-		files[fileidx].base = ++bn;
-	else
-		files[fileidx].base = files[fileidx].name;
 	if (given)
 		files[fileidx].flags |= FF_WARN;
 	fileidx++;
diff --git a/sxiv.h b/sxiv.h
index 2d026b1..b95d7ff 100644
--- a/sxiv.h
+++ b/sxiv.h
@@ -113,7 +113,6 @@ typedef enum {
 typedef struct {
 	const char *name; /* as given by user */
 	const char *path; /* always absolute */
-	const char *base;
 	fileflags_t flags;
 } fileinfo_t;