Remove unused function (closes #223)