Skip to content

Commit

Permalink
Removed obsoleted set indent function
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Jan 29, 2025
1 parent 5086bcb commit be3381d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 0 additions & 7 deletions src/slog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/slog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be3381d

Please sign in to comment.