From what I understand, these were added to handle rendering non-AAT Arabic fonts back when OS X didn't have any OpenType support whatsowever. These days however, OS X supports Arabic OpenType shaping natively, so this code can go IMO.
Mitz, can you confirm?
Fixed in <http://trac.webkit.org/r123181>.