removing unused old stack-trace code