diff options
| author | Glenn Morris <rgm@gnu.org> | 2018-04-25 14:40:28 -0400 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2018-04-25 14:40:28 -0400 |
| commit | 6e65b1e8a9e8d8a7c68ead3016ff0b9265311700 (patch) | |
| tree | a6d571b87626eaec2dc618b84370caaa598155cc | |
| parent | 532f5fb3877ccd535a822f7c3c08d396621b4325 (diff) | |
| download | emacs-6e65b1e8a9e8d8a7c68ead3016ff0b9265311700.tar.gz | |
* lisp/net/eudc.el (split-string): Remove pre-21 fallback definition.
| -rw-r--r-- | lisp/net/eudc.el | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lisp/net/eudc.el b/lisp/net/eudc.el index 98f70bd1f7a..00d8c60311b 100644 --- a/lisp/net/eudc.el +++ b/lisp/net/eudc.el @@ -158,25 +158,6 @@ properties on the list." (setq plist (cdr (cdr plist)))) default)) -(if (not (fboundp 'split-string)) - (defun split-string (string &optional pattern) - "Return a list of substrings of STRING which are separated by PATTERN. -If PATTERN is omitted, it defaults to \"[ \\f\\t\\n\\r\\v]+\"." - (or pattern - (setq pattern "[ \f\t\n\r\v]+")) - (let (parts (start 0)) - (when (string-match pattern string 0) - (if (> (match-beginning 0) 0) - (setq parts (cons (substring string 0 (match-beginning 0)) nil))) - (setq start (match-end 0)) - (while (and (string-match pattern string start) - (> (match-end 0) start)) - (setq parts (cons (substring string start (match-beginning 0)) parts) - start (match-end 0)))) - (nreverse (if (< start (length string)) - (cons (substring string start) parts) - parts))))) - (defun eudc-replace-in-string (str regexp newtext) "Replace all matches in STR for REGEXP with NEWTEXT. Value is the new string." |
