Before the invention of the cotton gin, how were seeds removed from cotton fiber?

http://en.wikipedia.org/wiki/Cotton_gin#Early_cotton_gins