Update Swing_Index.cpp

Removed unnecessary code