remove unused code

part of #843
sure