Small security fix + removed unused function
Small security fix + removed unused function

markrcote/pulseguardian,mccricardo/pulseguardian,yaoweizhen/pulseguardian,mozilla/pulseguardian,yaoweizhen/pulseguardian,markrcote/pulseguardian,mozilla/pulseguardian,markrcote/pulseguardian,mccricardo/pulseguardian,yaoweizhen/pulseguardian,mozilla/pulseguardian,markrcote/pulseguardian,yaoweizhen/pulseguardian,mccricardo/pulseguardian,mozilla/pulseguardian,mccricardo/pulseguardian