Stefan-Endres / DWPM-Mixture-Model

Phase seperation calculation using the DWPM mixture rule.
7 stars 3 forks source link

Remove clone code #16

Closed alchemyst closed 8 years ago

alchemyst commented 8 years ago

There are quite a few pieces of copy-paste cloning in the code base at the moment. Worse, some of them are not exactly the same and differ in small difficult-to-see ways.

Run clonedigger on the code and examine the output.html file it will create. If there is redundant code which has been superceded by new code, delete the old code. If both clones are still used, combine them to a common function/method.

I recommend that you develop working tests before doing this task.

Stefan-Endres commented 8 years ago

Removed core function clone code 1b81424 1c0f3fa. Remainder of clonedigger output is for similar test function structures which will remain and main call scripts which will be moved to unittests soon, output.html: https://www.dropbox.com/s/orvyp8pgt94klrk/output.html?dl=0