Daniel Nephin 2008884241 state: un-method funcs that don't use their receiver
This change was mostly automated with the following

First generate a list of functions with:

  git grep -o 'Store) \([^(]\+\)(tx \*txn' ./agent/consul/state | awk '{print $2}' | grep -o '^[^(]\+'

Then the list was curated a bit with trial/error to remove and add funcs
as necessary.

Finally the replacement was done with:

  dir=agent/consul/state
  file=${1-funcnames}

  while read fn; do
    echo "$fn"
    sed -i -e "s/(s \*Store) $fn(/$fn(/" $dir/*.go
    sed -i -e "s/s\.$fn(/$fn(/" $dir/*.go
    sed -i -e "s/s\.store\.$fn(/$fn(/" $dir/*.go
  done < $file
2020-07-16 15:30:39 -04:00
..
2020-06-16 13:21:11 -04:00
2020-06-24 13:00:15 -04:00
2018-11-02 12:00:39 -05:00
2020-06-17 16:49:46 -04:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-05-28 14:39:37 -04:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00
2020-06-16 13:21:11 -04:00