remove defunct lines