Removed the unused logging functions

master
MadcowOG 2023-04-19 18:22:48 -07:00
parent af12508547
commit ddf6b54da7
2 changed files with 1 additions and 12 deletions

View File

@ -125,11 +125,8 @@ void fifo_handle(const char *line) {
command = to_delimiter(line, &loc, ' '); command = to_delimiter(line, &loc, ' ');
bar_log(LOG_INFO, "fifo_handle: command: '%s'", command);
if (STRING_EQUAL(command, "status")) { if (STRING_EQUAL(command, "status")) {
char *status = to_delimiter(line, &loc, '\n'); char *status = to_delimiter(line, &loc, '\n');
bar_log(LOG_INFO, "fifo_handle: status: '%s'", status);
struct Monitor *pos; struct Monitor *pos;
wl_list_for_each(pos, &monitors, link) { wl_list_for_each(pos, &monitors, link) {
bar_set_status(pos->bar, status); bar_set_status(pos->bar, status);
@ -142,10 +139,7 @@ void fifo_handle(const char *line) {
} }
void fifo_in(int fd, short mask, void *data) { void fifo_in(int fd, short mask, void *data) {
//bar_log(LOG_INFO, "fifo_in: start");
if (mask & POLLERR) { if (mask & POLLERR) {
bar_log(LOG_INFO, "fifo_in: POLLERR");
events_remove(events, fd); events_remove(events, fd);
char *default_status = string_create("dwl %.1f", VERSION); char *default_status = string_create("dwl %.1f", VERSION);
struct Monitor *pos; struct Monitor *pos;
@ -162,19 +156,15 @@ void fifo_in(int fd, short mask, void *data) {
char *buffer = NULL; char *buffer = NULL;
size_t size = 0; size_t size = 0;
while (1) { while (1) {
if (getline(&buffer, &size, fifo_file) == -1) { if (getline(&buffer, &size, fifo_file) == -1)
//bar_log(LOG_INFO, "fifo_in: breaking");
break; break;
}
//bar_log(LOG_INFO, "fifo_in: '%s'", buffer);
fifo_handle(buffer); fifo_handle(buffer);
} }
free(buffer); free(buffer);
fclose(fifo_file); fclose(fifo_file);
close(new_fd); close(new_fd);
//bar_log(LOG_INFO, "fifo_in: done");
} }
void fifo_setup(void) { void fifo_setup(void) {

View File

@ -43,7 +43,6 @@ void basic_component_destroy(struct BasicComponent *component) {
} }
int basic_component_is_clicked(struct BasicComponent *component, double x, double y) { int basic_component_is_clicked(struct BasicComponent *component, double x, double y) {
bar_log(LOG_INFO, "basic_component_is_clicked: %.1f x %.1f in %d x %d", x, y, component->x, component->x+component->width);
return (x > component->x && y > component->y && return (x > component->x && y > component->y &&
x < (component->x + component->width) && y < (component->y + component->height)); x < (component->x + component->width) && y < (component->y + component->height));
} }