Fix minor style issues in StockSource/StockWidget

This pull request fixes some minor style issues in StockSource and StockWidget. Most are whitespace-issues, but some unused code is also removed.