Cleaned warnings on MacOS

Dropped unused vars in actors.
Cleaned some nearby code.
8 jobs for master in 4 minutes and 14 seconds
Status Job ID Name Coverage
  Build
passed #13549
linux
build:linux

00:01:20

passed #13548
mac_old
build:mac

00:01:51

passed #13547
win32
build:win32

00:01:04

passed #13546
winxp
build:winxp

00:01:30

 
  Dist
passed #13553
linux
dist:linux

00:00:15

passed #13552
mac_old
dist:mac

00:01:37

passed #13551
win32
dist:win32

00:00:15

passed #13550
winxp
dist:winxp

00:00:14