From: eric Date: Fri, 28 Dec 2018 12:47:28 +0000 (+0000) Subject: zap unused code X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=11200fa7fc7641f36fae0f0cabfbfe8fc83815b2;p=openbsd zap unused code --- diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c index af7b59aa2cf..884f696365f 100644 --- a/usr.sbin/smtpd/aliases.c +++ b/usr.sbin/smtpd/aliases.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aliases.c,v 1.76 2018/12/28 11:40:29 eric Exp $ */ +/* $OpenBSD: aliases.c,v 1.77 2018/12/28 12:47:28 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -46,11 +46,9 @@ aliases_get(struct expand *expand, const char *username) union lookup lk; struct dispatcher *dsp; struct table *mapping = NULL; - struct table *userbase = NULL; char *pbuf; dsp = dict_xget(env->sc_dispatchers, expand->rule->dispatcher); - userbase = table_find(env, dsp->u.local.table_userbase); mapping = table_find(env, dsp->u.local.table_alias); xlowercase(buf, username, sizeof(buf)); @@ -104,10 +102,8 @@ aliases_virtual_get(struct expand *expand, const struct mailaddr *maddr) int ret; struct dispatcher *dsp; struct table *mapping = NULL; - struct table *userbase = NULL; dsp = dict_xget(env->sc_dispatchers, expand->rule->dispatcher); - userbase = table_find(env, dsp->u.local.table_userbase); mapping = table_find(env, dsp->u.local.table_virtual); if (!bsnprintf(user, sizeof(user), "%s", maddr->user))