change const copy to const reference (cppcheck)
remove unused const copy (cppcheck)

I'm leaving the code there for now as its pulling values from the protocol.