[Compass-ci] [PATCH v2 compass-ci 1/2] lib/matrix2.rb: remove duplicate code