it was not "useless",the germans never attacked it, the problem with the Maginot line is that it did not extend all the way to the coast, the French foolishly thought the ardenn forrest and Belgian/Holland could defend the northern French border.
Had the Maginot line gone all the way to the coast , the invasion of France might have had a different ending.