aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-22 17:52:41 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-10-22 17:52:41 -0400
commit31f82830b22cd8cafd61a498b03f2bb137e37f89 (patch)
treed6fae033f4f797929cbb311c370dfbbba67098b6 /sway/config.c
parentMerge pull request #2929 from RyanDwyer/fix-scratchpad-resize (diff)
downloadsway-31f82830b22cd8cafd61a498b03f2bb137e37f89.tar.gz
sway-31f82830b22cd8cafd61a498b03f2bb137e37f89.tar.zst
sway-31f82830b22cd8cafd61a498b03f2bb137e37f89.zip
config: remove peeked + expanded line log entries
The peeked and expanded line log entries were useful during the switch to generic code blocks and subcommands. However, it has been a while since those were introduced and the log entries are no longer helpful for any remaining issues with config parsing. Instead of keeping them as clutter in the log, they can just be removed.
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/config.c b/sway/config.c
index b9cb0a1c..9ec40367 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -584,13 +584,11 @@ static int detect_brace_on_following_line(FILE *file, char *line,
584 char *peeked = NULL; 584 char *peeked = NULL;
585 long position = 0; 585 long position = 0;
586 do { 586 do {
587 wlr_log(WLR_DEBUG, "Peeking line %d", line_number + lines + 1);
588 free(peeked); 587 free(peeked);
589 peeked = peek_line(file, lines, &position); 588 peeked = peek_line(file, lines, &position);
590 if (peeked) { 589 if (peeked) {
591 peeked = strip_whitespace(peeked); 590 peeked = strip_whitespace(peeked);
592 } 591 }
593 wlr_log(WLR_DEBUG, "Peeked line: `%s`", peeked);
594 lines++; 592 lines++;
595 } while (peeked && strlen(peeked) == 0); 593 } while (peeked && strlen(peeked) == 0);
596 594
@@ -695,7 +693,6 @@ bool read_config(FILE *file, struct sway_config *config,
695 free(line); 693 free(line);
696 return false; 694 return false;
697 } 695 }
698 wlr_log(WLR_DEBUG, "Expanded line: %s", expanded);
699 struct cmd_results *res; 696 struct cmd_results *res;
700 if (block && strcmp(block, "<commands>") == 0) { 697 if (block && strcmp(block, "<commands>") == 0) {
701 // Special case 698 // Special case