Remove gmx_ana_index_t::name and unused code.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 12 Apr 2013 11:18:41 +0000 (14:18 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 29 Apr 2013 19:23:31 +0000 (21:23 +0200)
commit0f6cbe9af43f2b512dcb223e601d6a79ddc28fd5
treec9b4bfa723cc33d59066dc4fb89b216fcc9201cd
parent44dd9c4e7b4eba0217f1bbcb327de3ebddd6e833
Remove gmx_ana_index_t::name and unused code.

Remove the name field from gmx_ana_index_t, which was in most cases
NULL, and was a source of multiple ugly hacks in the selection code to
avoid leaking the memory allocated for the name.
Now that SelectionTreeElement has a proper std::string name member,
there is no need for this name field anywhere in the selection code
where the atom groups are handled as selection values.

Also remove unused code from indexutil.* (that would have required extra
effort to not break it).

Change-Id: I14698c17da3b479de4016a6188fcd235514b9e2a
src/gromacs/selection/compiler.cpp
src/gromacs/selection/evaluate.cpp
src/gromacs/selection/indexutil.cpp
src/gromacs/selection/indexutil.h
src/gromacs/selection/parsetree.cpp
src/gromacs/selection/poscalc.cpp
src/gromacs/selection/selection.cpp
src/gromacs/selection/selectioncollection.cpp
src/gromacs/trajectoryanalysis/runnercommon.cpp