refactor: cleanup dead code

This commit is contained in:
Jeremy Attali 2019-12-23 12:15:02 -05:00
parent f0600e55e7
commit e946b241bf
2 changed files with 0 additions and 15 deletions

View File

@ -15,12 +15,6 @@
#define GEOMETRY_PATTERN "xx,yy wwxhh"
enum swappy_brush_point_kind {
SWAPPY_BRUSH_POINT_FIRST = 0, /* A first point of new brush batch */
SWAPPY_BRUSH_POINT_WITHIN, /* A point within a brush batch */
SWAPPY_BRUSH_POINT_LAST, /* A point at the end of brush batch */
};
enum swappy_paint_type {
SWAPPY_PAINT_MODE_BRUSH = 0, /* Brush mode to draw arbitrary shapes */
SWAPPY_PAINT_MODE_TEXT, /* Mode to draw texts */
@ -100,9 +94,6 @@ struct swappy_state {
struct wl_list outputs; // mako_output::link
struct wl_list seats; // mako_seat::link
struct wl_surface *surface;
struct zwlr_layer_surface_v1 *layer_surface;
size_t n_done;
char *storage_path;
@ -111,7 +102,6 @@ struct swappy_state {
int width;
int height;
char image[255];
/* Options */
char *geometry_str;

View File

@ -21,11 +21,6 @@ int main(int argc, char *argv[]) {
state.argv = argv;
state.mode = SWAPPY_PAINT_MODE_BRUSH;
char *path = "/home/jattali/Desktop/sway.png";
g_debug("Loading: %s", path);
sprintf(state.image, "%s", path);
if (!config_get_storage_path(&state)) {
g_critical("could not find a valid pictures path in your env variables");
exit(1);