Removed unused leaking code
Removed unused leaking code

piotras/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core,piotras/midgard-core,midgardproject/midgard-core,piotras/midgard-core,midgardproject/midgard-core,piotras/midgard-core