Should be fine to delete this as it's in a controller and (technically) not accessible outside the controller scope. I say technically because it's still possible in AngularJS to do some disgusting scope manipulation and get access to controller internals, but in reality it's a whole lot easier just to duplicate the function in your own code. If this were a service/factory, deleting would not be safe. 