This is a pun on the word "flagged". To flag away means to disappear, or diminish. "Flagged" has the word "flag" in it. Semaphore is a method of signalling across a distance. Flags are often used for this purpose.  
Semaphore was flagged away as a form of communication decades ago .