code: public SpannableStringBuilder delete(int start, int end) {
          SpannableStringBuilder ret = replace(start, end, "", 0, 0);
  
          if (mGapLength > 2 * length())
              resizeFor(length());
  
          return ret; // == this
      }
docs: Documentation from interface