         let monthrange = CommonMethod().GetShiftCoursMonthRange(shiftyearandmonth.startcoursmonthyear, shiftstartmonth: shiftyearandmonth.startcoursmonth)
 
         //先に空要素を1クール分追加しておく
-        for i in 0 ..< monthrange.length{
+        for _ in 0 ..< monthrange.length{
             dayshiftarray.append("")
         }
         

        
        let setarray = Set(removedarray).intersect(comparisonarray)
        
        for i in 0 ..< setarray.count{
            removedarray.removeObject(setarray[setarray.startIndex.advancedBy(i)])
        }
        
        return removedarray
    }
    
    //受け取ったpivotindexよりも大きいindexの要素は削除する関数

            break
        }
        
        var position_sp = sp
        for i in 0 ..< shiftnamearray.count{
            
            let tmp = shiftnamearray[i]
