[bug#77875,v2,2/2] git: Remove compatibility shim for Guile-Git <= 0.5.2.

Message ID d3d994397c740545adf723447bd72e31075dc3ff.1745270691.git.ludo@gnu.org
State New
Headers
Series Use 'graph-descendant?' from Guile-Git instead of custom code |

Commit Message

Ludovic Courtès April 21, 2025, 9:26 p.m. UTC
  Guile-Git 0.5.2 was released in July 2021.

* guix/git.scm (GITERR_HTTP): Remove.

Change-Id: I05b2ee36f786bd83ca91c8989912f83f6dde59c0
---
 guix/git.scm | 7 -------
 1 file changed, 7 deletions(-)
  

Patch

diff --git a/guix/git.scm b/guix/git.scm
index 1065479091..da0a668587 100644
--- a/guix/git.scm
+++ b/guix/git.scm
@@ -206,13 +206,6 @@  (define* (make-default-fetch-options #:key (verify-certificate? #t))
                                                  warn-for-invalid-certificate)))
     options))
 
-(define GITERR_HTTP
-  ;; Guile-Git <= 0.5.2 lacks this constant.
-  (let ((errors (resolve-interface '(git errors))))
-    (if (module-defined? errors 'GITERR_HTTP)
-        (module-ref errors 'GITERR_HTTP)
-        34)))
-
 (define (set-git-timeouts connection-timeout read-timeout)
   "Instruct Guile-Git to honor the given CONNECTION-TIMEOUT and READ-TIMEOUT
 when talking to remote Git servers.