Does resigning before misusing information gained as a director remove the restriction?
No. Section 131 expressly continues the information-misuse duty after a person ceases to be a director, so resigning before the later use does not by itself remove the restriction. The continuing rule applies to information obtained by virtue of the former position and misuse to obtain a benefit for the former director or another person, or to cause detriment to the company. The end of office does not dispense with those source and purpose conditions. Section 131 states no fixed five-year expiry for the continuing duty, but it also does not make every later use of any information a breach.
Companies Act, Section 131