Remove Path::hasMagicNumber.