diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-12-01 08:24:27 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-12-01 08:24:27 -0500 |
commit | f82f3f1f177c1a9cc2c2236f51acd1be1809ae1f (patch) | |
tree | 76163b25a84c8416f7f529b9331778020cb7dc8b /lisp/vc/vc-git.el | |
parent | 2532d74a5fb5168955aa900f597bf7efc14efb12 (diff) | |
download | emacs-f82f3f1f177c1a9cc2c2236f51acd1be1809ae1f.tar.gz |
API simplification: remove vc-workfile-unchanged-p from pubic methods.
* vc/vc.el, vc-hooks.el, and all backends: API simplification;
vc-workfile-unchanged-p is no longer a public method (but the RCS and
SCCS back ends retain it as a private method used in state
computation). This method was redundant with vc-state and usually
implemented as a trivial call to same. Fixes the failure mode
described in bug#694.
Diffstat (limited to 'lisp/vc/vc-git.el')
-rw-r--r-- | lisp/vc/vc-git.el | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index ae1b35636fd..f2cb99733ba 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el @@ -54,7 +54,6 @@ ;; * working-revision (file) OK ;; - latest-on-branch-p (file) NOT NEEDED ;; * checkout-model (files) OK -;; - workfile-unchanged-p (file) OK ;; - mode-line-string (file) OK ;; STATE-CHANGING FUNCTIONS ;; * create-repo () OK @@ -248,9 +247,6 @@ matching the resulting Git log output, and KEYWORDS is a list of str) (vc-git--rev-parse "HEAD")))) -(defun vc-git-workfile-unchanged-p (file) - (eq 'up-to-date (vc-git-state file))) - (defun vc-git-mode-line-string (file) "Return a string for `vc-mode-line' to put in the mode line for FILE." (let* ((rev (vc-working-revision file)) |