remove unused code

part of #843
this seems unused code as well