In a surprise development, Pakistan Supreme Court's second senior-most judge, who was slated to be the next chief justice, resigned on Thursday