It all depends on how long and at what dose you were on previously. If you have been off steroids for a year or more, you would not need them during surgery. But, there is controversy about giving perioperative steroids in those who have stopped taking them 6-12 months before surgery.
After 10 years, I doubt you would get steroids.
The dosing is not to prevent inflammation, but to prevent dangerous shock during surgery. Cortisol is a stress hormone, and surgery is definitely stress on the body. Some people suffer adrenal suppression from long term steroids, and you actually do not know if you have it until your body is tested. Often, surgeons are risk adverse and would rather give you a couple of doses of hydrocortisone during surgery, than worry about shock in the middle of a procedure that could risk your life. But, there is some evidence that it is not necessary. I do know that I did have a hydrocortisone "booster" during my hernia repair, even though I waited a full year after tapering of prednisone, purely as a safety precaution.
This does not mean you will need oral steroids for any time after surgery. It is just to cover the needed surge during the surgery itself. Many people don't even know they got it.
Jan