I believe United States v. Eichman invalidated 18 U.S.C. § 700 -- which is the Flag Protection Act.
The "Flag Code" normally refers to 4 U.S.C. § 1 -- which I don't think ever had any penalties for violation. It's simply advisory. The purpose is primarily to define the way the flag is used in an official capacity.