imap-send: check NULL return of SSL_CTX_new()
[gitweb.git] / wrapper.c
index 0e22d4381438b2c262e1cd5ee0cc4effc2fb3c3d..dae5675a960b636337dc7890fcfbcc559aa98567 100644 (file)
--- a/wrapper.c
+++ b/wrapper.c
@@ -601,18 +601,6 @@ int access_or_die(const char *path, int mode, unsigned flag)
        return ret;
 }
 
-struct passwd *xgetpwuid_self(void)
-{
-       struct passwd *pw;
-
-       errno = 0;
-       pw = getpwuid(getuid());
-       if (!pw)
-               die(_("unable to look up current user in the passwd file: %s"),
-                   errno ? strerror(errno) : _("no such user"));
-       return pw;
-}
-
 char *xgetcwd(void)
 {
        struct strbuf sb = STRBUF_INIT;