Remove unused code in information gain function.
Remove unused code in information gain function.

Well, I did expect that this function to handle multiple tasks, but
I found it confused for reading, so I didn't use it in
partition_for_transaction.

qiyuangong/Partition_for_Transaction