Skip to content

Commit

Permalink
Clean up includes
Browse files Browse the repository at this point in the history
Signed-off-by: Abe Wieland <abe.wieland@gmail.com>
  • Loading branch information
abewieland committed Nov 26, 2024
1 parent 3db50f5 commit d9cbf2e
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions src/application.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@
#include "viewer.h"

#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <poll.h>
#include <pthread.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>

// Special ids for windows size and position
Expand Down
2 changes: 1 addition & 1 deletion src/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#pragma once

#include "action.h"
#include "image.h"
#include "keybind.h"

/** Event types. */
enum event_type {
Expand Down
2 changes: 0 additions & 2 deletions src/formats/avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "../loader.h"

#include <avif/avif.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// AVI signature
Expand Down
2 changes: 0 additions & 2 deletions src/formats/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

#include "../loader.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// BMP type id
#define BMP_TYPE ('B' | ('M' << 8))
Expand Down
2 changes: 0 additions & 2 deletions src/formats/gif.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "../loader.h"

#include <gif_lib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// GIF signature
Expand Down
1 change: 0 additions & 1 deletion src/formats/heif.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <libheif/heif.h>
#include <stdlib.h>
#include <string.h>

#ifdef HAVE_LIBEXIF
/**
Expand Down
2 changes: 0 additions & 2 deletions src/formats/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

#include "../loader.h"

#include <errno.h>
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// depends on stdio.h, uses FILE but doesn't include the header
Expand Down
1 change: 0 additions & 1 deletion src/gallery.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "ui.h"

#include <stdlib.h>
#include <string.h>

// Configuration parameters
#define CFG_SECTION "gallery"
Expand Down
1 change: 0 additions & 1 deletion src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "application.h"
#include "font.h"
#include "imagelist.h"
#include "keybind.h"
#include "loader.h"
#include "ui.h"
Expand Down
1 change: 0 additions & 1 deletion src/keybind.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "application.h"

#include <ctype.h>
#include <stdlib.h>
#include <string.h>

Expand Down
3 changes: 0 additions & 3 deletions src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@

#include "application.h"
#include "buildcfg.h"
#include "event.h"
#include "exif.h"
#include "imagelist.h"

#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
Expand Down
1 change: 0 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "config.h"
#include "imagelist.h"
#include "loader.h"
#include "ui.h"
#include "viewer.h"

#include <getopt.h>
Expand Down
2 changes: 0 additions & 2 deletions src/memdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

#include <ctype.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
Expand Down
3 changes: 0 additions & 3 deletions src/viewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
#include "fetcher.h"
#include "imagelist.h"
#include "info.h"
#include "keybind.h"
#include "loader.h"
#include "ui.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/timerfd.h>
#include <unistd.h>
Expand Down

0 comments on commit d9cbf2e

Please sign in to comment.