dnie: removed dead and untested SM wrapping code

Please note that a compiler warning revealed that the sm wrapping was never actually used.