Remove unused and not working code

* Implementations of LsDupes and UpdateIndex were very hacky and are now
  outdated, remove them
* Eliminate a ton of compiler warnings for unused code