removed unused functions

+ silence some conversion warnings (no real fix)