lawyers for cosby who has denied any wrongdoing had argued that former montgomery county district attorney bruce castor had promised not to prosecute cosby in the constand case in exchange for cosby' s agreement to give a deposition in her civil lawsuit