loplugin:passstringbyref (and some dead code)

Change-Id: I96f5b58ac000e7535b6759af04be60e738aa2b09