diff --git a/README.md b/README.md index aa2d2e4..ee2d792 100644 --- a/README.md +++ b/README.md @@ -314,9 +314,6 @@ slog_config_t slgCfg; slog_config_get(&slgCfg); slgCfg.nIndnets = 1; slog_config_set(&slgCfg); - -/* You can also enable indents like that */ -slog_indent(1); // Any value except 0 will enable it ``` With indentations enabled: diff --git a/src/slog.c b/src/slog.c index 62cf3ef..7e2f48b 100644 --- a/src/slog.c +++ b/src/slog.c @@ -610,13 +610,6 @@ void slog_separator_set(const char *pFormat, ...) slog_sync_unlock(&g_slog); } -void slog_indent(uint8_t nEnable) -{ - slog_sync_lock(&g_slog); - g_slog.config.nIndent = nEnable; - slog_sync_unlock(&g_slog); -} - void slog_callback_set(slog_cb_t callback, void *pContext) { slog_sync_lock(&g_slog); diff --git a/src/slog.h b/src/slog.h index 18de599..a07cd73 100644 --- a/src/slog.h +++ b/src/slog.h @@ -181,7 +181,6 @@ void slog_config_set(slog_config_t *pCfg); void slog_separator_set(const char *pFormat, ...); void slog_callback_set(slog_cb_t callback, void *pContext); -void slog_indent(uint8_t nEnable); void slog_enable(slog_flag_t eFlag); void slog_disable(slog_flag_t eFlag);