[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ebdb 6479c87 173/350: Remove unused code
From: |
Eric Abrahamsen |
Subject: |
[elpa] externals/ebdb 6479c87 173/350: Remove unused code |
Date: |
Mon, 14 Aug 2017 11:46:29 -0400 (EDT) |
branch: externals/ebdb
commit 6479c872376fb8f31c841567163bd0b17ad82e6e
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>
Remove unused code
* ebdb.el: Remove `ebdb-merge-concat',
`ebdb-merge-concat-remove-duplicates', `ebdb-merge-string-least',
`ebdb-merge-string-most' and `ebdb-merge-lists'. They aren't used
anywhere.
---
ebdb.el | 39 ---------------------------------------
1 file changed, 39 deletions(-)
diff --git a/ebdb.el b/ebdb.el
index d0e00d5..3a88956 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4279,45 +4279,6 @@ also be one of the special symbols below.
(field string))
(ebdb-record-user-field record field))
-(defun ebdb-merge-concat (string1 string2 &optional separator)
- "Return the concatenation of STRING1 and STRING2.
-SEPARATOR defaults to \"\\n\"."
- (concat string1 (or separator "\n") string2))
-
-(defun ebdb-merge-concat-remove-duplicates (string1 string2)
- "Concatenate STRING1 and STRING2, but remove duplicate lines."
- (let ((lines (split-string string1 "\n")))
- (dolist (line (split-string string2 "\n"))
- (cl-pushnew line lines))
- (ebdb-concat "\n" lines)))
-
-(defun ebdb-merge-string-least (string1 string2)
- "Return the string out of STRING1 and STRING2 that is `string-lessp'."
- (if (string-lessp string1 string2)
- string1
- string2))
-
-(defun ebdb-merge-string-most (string1 string2)
- "Return the string out of STRING1 and STRING2 that is not `string-lessp'."
- (if (string-lessp string1 string2)
- string2
- string1))
-
-(defun ebdb-merge-lists (l1 l2 cmp)
- "Merge two lists L1 and L2 based on comparison CMP.
-An element from L2 is added to L1 if CMP returns nil for all elements of L1.
-If L1 or L2 are not lists, they are replaced by (list L1) and (list L2)."
- (let (merge)
- (unless (listp l1) (setq l1 (list l1)))
- (dolist (e2 (if (listp l2) l2 (list l2)))
- (let ((ll1 l1) e1 fail)
- (while (setq e1 (pop ll1))
- (if (funcall cmp e1 e2)
- (setq ll1 nil
- fail t)))
- (unless fail (push e2 merge))))
- (append l1 (nreverse merge))))
-
;;; Parsing other things
(defun ebdb-divide-name (string)
- [elpa] externals/ebdb a94483d 122/350: Refinements to snarfing, (continued)
- [elpa] externals/ebdb a94483d 122/350: Refinements to snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb d9b4865 146/350: More tweaks to snarfing process, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b635b4e 155/350: First stab at article snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 6c267e9 159/350: Fix pop-up mouse menus in EBDB buffers, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 55b3f82 160/350: Fixup with fix popup menus, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb abdb8cd 158/350: Update copyright years to 2017, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 5fdf286 166/350: Feeding incorrect args to ebdb-snarf, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 9b6c88d 167/350: Fix incorrect variable name, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb dd13813 171/350: Bah, fixups to a19ff0a, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb f1448f4 174/350: Remove this empty file, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 6479c87 173/350: Remove unused code,
Eric Abrahamsen <=
- [elpa] externals/ebdb db930f6 163/350: Compiler-inspired fixes, and removal of old-code references, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 281c61e 154/350: Don't ((lambda ()), Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 4cce4c8 096/350: Simplify role field adoption process, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 0910ddd 105/350: Change default of ebdb-default-user-field, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b495e29 083/350: Omnibus changes to display and redisplay, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 29bf304 101/350: Rework MUA window popups, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 81e23c3 134/350: Simplify record mail citing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb b661aac 124/350: First generalized version of snarfing, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb aae57ff 139/350: Ensure that extra name field instances go in 'aka slot, Eric Abrahamsen, 2017/08/14
- [elpa] externals/ebdb 057c4c0 144/350: Have ebdb-snarf accept optional records argument, Eric Abrahamsen, 2017/08/14