Remove useless duplicated code in SwiftShaFile