rm unuseful codes for publishing