Gas furnace for melting deposits