Got rid of some errors in unused class AbstractFlowLayout