Where was the switch? If it's underneath the dash, then it switches the speedo-light off, when parked with sidelights on.
Green wire... Does anything not work? If so, it's for that.
If it's still live, then get the end insulated before it shorts against something.
Green wire is a fairly common colour for accessories and things, so it could easily be aftermarket...
