Skip to content

Commit d4af2f3

Browse files
committed
rfc2104.el: Remove XEmacs compat code.
* lisp/net/rfc2104.el (rfc2104-string-make-unibyte): Remove XEmacs compat code.
1 parent fac11d8 commit d4af2f3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lisp/net/rfc2104.el

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@
8484
(setq ls (cdr ls)))
8585
v))
8686

87-
(eval-when-compile
88-
(defmacro rfc2104-string-make-unibyte (string)
89-
"Return the unibyte equivalent of STRING.
90-
In XEmacs return just STRING."
91-
(if (featurep 'xemacs)
92-
string
93-
`(string-make-unibyte ,string))))
94-
9587
(defun rfc2104-hash (hash block-length hash-length key text)
9688
(let* (;; if key is longer than B, reset it to HASH(key)
9789
(key (if (> (length key) block-length)
@@ -107,7 +99,7 @@ In XEmacs return just STRING."
10799
(aset ipad i (logxor rfc2104-ipad c))
108100
(aset opad i (logxor rfc2104-opad c)))
109101
;; Perform inner hash.
110-
(setq partial (rfc2104-string-make-unibyte
102+
(setq partial (string-make-unibyte
111103
(funcall hash (concat ipad text))))
112104
;; Pack latter part of opad.
113105
(cl-do ((r 0 (+ 2 r))
@@ -117,7 +109,7 @@ In XEmacs return just STRING."
117109
(+ (* 16 (aref rfc2104-nybbles (aref partial r)))
118110
( aref rfc2104-nybbles (aref partial (1+ r))))))
119111
;; Perform outer hash.
120-
(rfc2104-string-make-unibyte (funcall hash opad))))
112+
(string-make-unibyte (funcall hash opad))))
121113

122114
(provide 'rfc2104)
123115

0 commit comments

Comments
 (0)