I want to know the answer to the following question:
When had samurai last been used in battle?
All the background I'm provided with is that "With no warfare since the early 17th century, samurai gradually lost their military function during the Tokugawa era (also called the Edo period).". Is that enough to answer the question?