mirror of
https://github.com/jtheoof/swappy.git
synced 2024-09-11 14:55:49 +03:00
refactor: cleanup dead code
This commit is contained in:
parent
f0600e55e7
commit
e946b241bf
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user