Skip to content

Commit 7b3fd03

Browse files
committed
Merge branch 'cm/drop-xunsetenv'
Drop a helper function that has never been used since its addition. * cm/drop-xunsetenv: wrapper: remove xunsetenv()
2 parents a31efa7 + 6fc527a commit 7b3fd03

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

git-compat-util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,6 @@ char *xstrndup(const char *str, size_t len);
879879
void *xrealloc(void *ptr, size_t size);
880880
void *xcalloc(size_t nmemb, size_t size);
881881
void xsetenv(const char *name, const char *value, int overwrite);
882-
void xunsetenv(const char *name);
883882
void *xmmap(void *start, size_t length, int prot, int flags, int fd, off_t offset);
884883
const char *mmap_os_err(void);
885884
void *xmmap_gently(void *start, size_t length, int prot, int flags, int fd, off_t offset);

wrapper.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ void xsetenv(const char *name, const char *value, int overwrite)
151151
die_errno(_("could not setenv '%s'"), name ? name : "(null)");
152152
}
153153

154-
void xunsetenv(const char *name)
155-
{
156-
if (!unsetenv(name))
157-
die_errno(_("could not unsetenv '%s'"), name ? name : "(null)");
158-
}
159-
160154
/*
161155
* Limit size of IO chunks, because huge chunks only cause pain. OS X
162156
* 64-bit is buggy, returning EINVAL if len >= INT_MAX; and even in

0 commit comments

Comments
 (0)