diff options
Diffstat (limited to 'util/log.c')
-rw-r--r-- | util/log.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -81,23 +81,6 @@ void _wlr_log(enum wlr_log_importance verbosity, const char *fmt, ...) { va_end(args); } -// strips the path prefix from filepath -// will try to strip WLR_SRC_DIR as well as a relative src dir -// e.g. '/src/build/wlroots/backend/wayland/backend.c' and -// '../backend/wayland/backend.c' will both be stripped to -// 'backend/wayland/backend.c' -const char *_wlr_strip_path(const char *filepath) { - static int srclen = sizeof(WLR_SRC_DIR); - if (strstr(filepath, WLR_SRC_DIR) == filepath) { - filepath += srclen; - } else if (*filepath == '.') { - while (*filepath == '.' || *filepath == '/') { - ++filepath; - } - } - return filepath; -} - enum wlr_log_importance wlr_log_get_verbosity(void) { return log_importance; } |