summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2017-07-30 10:06:38 +0200
committerGitHub <noreply@github.com>2017-07-30 10:06:38 +0200
commit663a8e71543787256ba4a58956521a1103be9909 (patch)
treef5880babb5fbfd500107cd8d9c530d2ec4729ef7 /src/fe-common/core
parent437fbef6eb8f605320841cba119d3abbb3571a75 (diff)
parent2907a82b446d9d0a25157aa4ab560b49853f80d2 (diff)
downloadirssi-663a8e71543787256ba4a58956521a1103be9909.zip
Merge pull request #734 from trasz/master
Don't compute log_dir_create_mode in three different places.
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/fe-log.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c
index 5bc5c4e1..37b29990 100644
--- a/src/fe-common/core/fe-log.c
+++ b/src/fe-common/core/fe-log.c
@@ -49,8 +49,6 @@ static THEME_REC *log_theme;
static int skip_next_printtext;
static char *log_theme_name;
-static int log_dir_create_mode;
-
static char **autolog_ignore_targets;
static char *log_colorizer_strip(const char *str)
@@ -676,7 +674,6 @@ static void sig_theme_destroyed(THEME_REC *theme)
static void read_settings(void)
{
int old_autolog = autolog_level;
- int log_file_create_mode;
g_free_not_null(autolog_path);
autolog_path = g_strdup(settings_get_str("autolog_path"));
@@ -704,12 +701,6 @@ static void read_settings(void)
log_theme = log_theme_name == NULL ? NULL :
theme_load(log_theme_name);
- log_file_create_mode = octal2dec(settings_get_int("log_create_mode"));
- log_dir_create_mode = log_file_create_mode;
- if (log_file_create_mode & 0400) log_dir_create_mode |= 0100;
- if (log_file_create_mode & 0040) log_dir_create_mode |= 0010;
- if (log_file_create_mode & 0004) log_dir_create_mode |= 0001;
-
if (autolog_ignore_targets != NULL)
g_strfreev(autolog_ignore_targets);