Skip to content

Commit e3b77a2

Browse files
committed
Merge branch 'rs/drop-core-compression-vars'
Code clean-up. * rs/drop-core-compression-vars: compression: drop write-only core_compression_* variables
2 parents 28caad6 + 8f0f110 commit e3b77a2

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

cache.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,6 @@ extern char *apply_default_ignorewhitespace;
958958
extern const char *git_attributes_file;
959959
extern const char *git_hooks_path;
960960
extern int zlib_compression_level;
961-
extern int core_compression_level;
962961
extern int pack_compression_level;
963962
extern size_t packed_git_window_size;
964963
extern size_t packed_git_limit;

config.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ static struct key_value_info *current_config_kvi;
7676
*/
7777
static enum config_scope current_parsing_scope;
7878

79-
static int core_compression_seen;
8079
static int pack_compression_seen;
8180
static int zlib_compression_seen;
8281

@@ -1400,8 +1399,6 @@ static int git_default_core_config(const char *var, const char *value, void *cb)
14001399
level = Z_DEFAULT_COMPRESSION;
14011400
else if (level < 0 || level > Z_BEST_COMPRESSION)
14021401
die(_("bad zlib compression level %d"), level);
1403-
core_compression_level = level;
1404-
core_compression_seen = 1;
14051402
if (!zlib_compression_seen)
14061403
zlib_compression_level = level;
14071404
if (!pack_compression_seen)

environment.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ char *apply_default_ignorewhitespace;
4141
const char *git_attributes_file;
4242
const char *git_hooks_path;
4343
int zlib_compression_level = Z_BEST_SPEED;
44-
int core_compression_level;
4544
int pack_compression_level = Z_DEFAULT_COMPRESSION;
4645
int fsync_object_files;
4746
size_t packed_git_window_size = DEFAULT_PACKED_GIT_WINDOW_SIZE;

0 commit comments

Comments
 (0)