Remove dead variables.
authorTom Lane <[email protected]>
Sun, 4 Jun 2017 00:35:52 +0000 (20:35 -0400)
committerTom Lane <[email protected]>
Sun, 4 Jun 2017 00:35:52 +0000 (20:35 -0400)
Commit 512c7356b left a couple of variables unused except for being set.
My compiler didn't whine about this, but some buildfarm members did.

src/backend/utils/adt/selfuncs.c

index 52d0e48995a68338ef803ce99744c1d1df46fe35..300a8ff7e54c15c321e1a19d56d69b0f70d4b87d 100644 (file)
@@ -336,13 +336,10 @@ var_eq_const(VariableStatData *vardata, Oid operator,
             statistic_proc_security_check(vardata,
                                         (opfuncoid = get_opcode(operator))))
    {
-       Form_pg_statistic stats;
        AttStatsSlot sslot;
        bool        match = false;
        int         i;
 
-       stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
-
        /*
         * Is the constant "=" to any of the column's most common values?
         * (Although the given operator may not really be "=", we will assume
@@ -480,12 +477,9 @@ var_eq_non_const(VariableStatData *vardata, Oid operator,
    }
    else if (HeapTupleIsValid(vardata->statsTuple))
    {
-       Form_pg_statistic stats;
        double      ndistinct;
        AttStatsSlot sslot;
 
-       stats = (Form_pg_statistic) GETSTRUCT(vardata->statsTuple);
-
        /*
         * Search is for a value that we do not know a priori, but we will
         * assume it is not NULL.  Estimate the selectivity as non-null