remove unused code
ruby shapegen: separating init from generate