]> git.eshelyaron.com Git - emacs.git/commitdiff
* vc.el (vc-default-prettify-state-info): Remove function, unused.
authorDan Nicolaescu <dann@ics.uci.edu>
Wed, 26 Aug 2009 07:42:11 +0000 (07:42 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Wed, 26 Aug 2009 07:42:11 +0000 (07:42 +0000)
* vc-bzr.el (vc-bzr-prettify-state-info): Remove function, unused.

lisp/ChangeLog
lisp/vc-bzr.el
lisp/vc.el

index 1408e8ef075318d4cb52b454d8451976c2c82ea9..8b30443e8378a79cab9fefc9acc62118997ea06c 100644 (file)
@@ -9,6 +9,9 @@
 
        * vc.el: Document the desired behavior for reverted files in the
        `added' state.
+       (vc-default-prettify-state-info): Remove function, unused.
+
+       * vc-bzr.el (vc-bzr-prettify-state-info): Remove function, unused.
 
 2009-08-26  Glenn Morris  <rgm@gnu.org>
 
index 314122487cc9c26cf46bd96fe1b06ccad29c33ea..b7e0b65e48a5b7ac1119abd2ab842b64105e443e 100644 (file)
@@ -594,14 +594,6 @@ stream.  Standard error output is discarded."
      (apply #'process-file command nil (list (current-buffer) nil) nil args)
      (buffer-substring (point-min) (point-max)))))
 
-(defun vc-bzr-prettify-state-info (file)
-  "Bzr-specific version of `vc-prettify-state-info'."
-  (if (eq 'edited (vc-state file))
-        (concat "(" (symbol-name (or (vc-file-getprop file 'vc-bzr-state)
-                                     'edited)) ")")
-    ;; else fall back to default vc.el representation
-    (vc-default-prettify-state-info 'Bzr file)))
-
 (defstruct (vc-bzr-extra-fileinfo
             (:copier nil)
             (:constructor vc-bzr-create-extra-fileinfo (extra-name))
index 085de45ad1ca1c0c5afa208afc3df7b9761ad2b2..de6fc319193dbf9f4a8dacfd582d86e35bc227b0 100644 (file)
 ;;   The default implementation deals well with all states that
 ;;   `vc-state' can return.
 ;;
-;; - prettify-state-info (file)
-;;
-;;   Translate the `vc-state' property of FILE into a string that can be
-;;   used in a human-readable buffer.  The default implementation deals well
-;;   with all states that `vc-state' can return.
-;;
 ;; STATE-CHANGING FUNCTIONS
 ;;
 ;; * create-repo (backend)
@@ -2389,26 +2383,6 @@ to provide the `find-revision' operation instead."
            (insert-file-contents-literally tmpfile)))
       (delete-file tmpfile))))
 
-(defun vc-default-prettify-state-info (backend file)
-  (let* ((state (vc-state file))
-       (statestring
-        (cond
-         ((stringp state) (concat "(locked:" state ")"))
-         ((eq state 'edited) "(modified)")
-         ((eq state 'needs-merge) "(merge)")
-         ((eq state 'needs-update) "(update)")
-         ((eq state 'added) "(added)")
-         ((eq state 'removed) "(removed)")
-          ((eq state 'ignored) "(ignored)")
-          ((eq state 'unregistered) "(unregistered)")
-         ((eq state 'unlocked-changes) "(stale)")
-         (t (format "(unknown:%s)" state))))
-       (buffer
-        (get-file-buffer file))
-       (modflag
-        (if (and buffer (buffer-modified-p buffer)) "+" "")))
-    (concat statestring modflag)))
-
 (defun vc-default-rename-file (backend old new)
   (condition-case nil
       (add-name-to-file old new)