pont-us / PuffinPlot

A program to plot and analyse palaeomagnetic data
GNU General Public License v3.0
3 stars 0 forks source link

Unify getTreatmentLevel and getTreatmentStep in Datum #392

Open pont-us opened 3 years ago

pont-us commented 3 years ago

These do the same thing! Clearly I wrote the second after forgetting that I'd already written the first. Looks as though getTreatmentLevel is the better-written function and more widely used. Probably getTreatmentStep should be removed and its three usages changed to getTreatmentLevel. Need to make sure surrounded code is fully covered by tests first, of course.