Remove unused dup function
Merge pull request #377 from marco-c/remove_dup

Remove unused dup function