[libgit2-glib] remote: removed is_valid_url and is_supported_url



commit 78eebc970e63254bfa3f574765bc2a11b634d18e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jan 18 17:09:29 2015 +0100

    remote: removed is_valid_url and is_supported_url
    
    They have become essentially useless with rsync-style ssh paths.

 libgit2-glib/ggit-remote.c |   32 --------------------------------
 libgit2-glib/ggit-remote.h |    3 ---
 2 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/libgit2-glib/ggit-remote.c b/libgit2-glib/ggit-remote.c
index 5b4c759..f55b10d 100644
--- a/libgit2-glib/ggit-remote.c
+++ b/libgit2-glib/ggit-remote.c
@@ -941,36 +941,4 @@ ggit_remote_set_callbacks (GgitRemote          *remote,
        g_object_notify (G_OBJECT (remote), "callbacks");
 }
 
-/**
- * ggit_remote_is_valid_url:
- * @url: a url string.
- *
- * Checks if @url is a valid remote URL.
- *
- * Returns: whether a string is a valid remote URL.
- */
-gboolean
-ggit_remote_is_valid_url (const gchar *url)
-{
-       g_return_val_if_fail (url != NULL, FALSE);
-
-       return git_remote_valid_url (url);
-}
-
-/**
- * ggit_remote_is_supported_url:
- * @url: a url string.
- *
- * Checks if @url is a supported remote URL.
- *
- * Returns: whether a string is a supported remote URL.
- */
-gboolean
-ggit_remote_is_supported_url (const gchar *url)
-{
-       g_return_val_if_fail (url != NULL, FALSE);
-
-       return git_remote_supported_url (url);
-}
-
 /* ex:set ts=8 noet: */
diff --git a/libgit2-glib/ggit-remote.h b/libgit2-glib/ggit-remote.h
index 596f129..62137fa 100644
--- a/libgit2-glib/ggit-remote.h
+++ b/libgit2-glib/ggit-remote.h
@@ -143,9 +143,6 @@ GgitRemoteCallbacks *
 void               ggit_remote_set_callbacks            (GgitRemote       *remote,
                                                          GgitRemoteCallbacks *callbacks);
 
-gboolean           ggit_remote_is_valid_url             (const gchar      *url);
-gboolean           ggit_remote_is_supported_url         (const gchar      *url);
-
 G_END_DECLS
 
 #endif /* __GGIT_REMOTE_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]