Legacy code is source code that relates to a no-longer supported, manufactured operating system or other computer technology.
To punish Lewis, the senior engineer decided to make him read and edit legacy code for an entire week.