[libgit2-glib] clone-options: does not have the remote_name anymore



commit 02ab9ca8ece97b8f5d6331d045f2cfc604e54184
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jan 18 14:04:22 2015 +0100

    clone-options: does not have the remote_name anymore

 libgit2-glib/ggit-clone-options.c |   34 ----------------------------------
 libgit2-glib/ggit-clone-options.h |    5 -----
 2 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/libgit2-glib/ggit-clone-options.c b/libgit2-glib/ggit-clone-options.c
index dce0c39..10fff35 100644
--- a/libgit2-glib/ggit-clone-options.c
+++ b/libgit2-glib/ggit-clone-options.c
@@ -69,7 +69,6 @@ ggit_clone_options_copy (GgitCloneOptions *clone_options)
        new_clone_options = g_slice_new0 (GgitCloneOptions);
 
        gnew_clone_options.bare = gclone_options->bare;
-       gnew_clone_options.remote_name = g_strdup (gclone_options->remote_name);
        gnew_clone_options.checkout_branch = g_strdup (gclone_options->checkout_branch);
 
        if (clone_options->remote_callbacks)
@@ -97,7 +96,6 @@ ggit_clone_options_free (GgitCloneOptions *clone_options)
        g_return_if_fail (clone_options != NULL);
 
        gclone_options = &clone_options->clone_options;
-       g_free ((gchar *)gclone_options->remote_name);
        g_free ((gchar *)gclone_options->checkout_branch);
 
        g_clear_object (&clone_options->remote_callbacks);
@@ -157,38 +155,6 @@ ggit_clone_options_set_is_bare (GgitCloneOptions *options,
 }
 
 /**
- * ggit_clone_options_get_remote_name:
- * @options: a #GgitCloneOptions.
- *
- * Gets the name given to the "origin" remote.  The default is "origin".
- *
- * Returns: the name given to the "origin" remote.  The default is "origin".
- */
-const gchar *
-ggit_clone_options_get_remote_name (GgitCloneOptions *options)
-{
-       g_return_val_if_fail (options != NULL, NULL);
-
-       return options->clone_options.remote_name;
-}
-
-/**
- * ggit_clone_options_set_remote_name:
- * @options: a #GgitCloneOptions.
- * @remote_name: (allow-none): the name given to the "origin" remote.
- *
- * Sets the name given to the "origin" remote.
- */
-void
-ggit_clone_options_set_remote_name (GgitCloneOptions *options,
-                                    const gchar      *remote_name)
-{
-       g_return_if_fail (options != NULL);
-
-       options->clone_options.remote_name = g_strdup (remote_name);
-}
-
-/**
  * ggit_clone_options_get_checkout_branch:
  * @options: a #GgitCloneOptions.
  *
diff --git a/libgit2-glib/ggit-clone-options.h b/libgit2-glib/ggit-clone-options.h
index a6f5c77..4e1e988 100644
--- a/libgit2-glib/ggit-clone-options.h
+++ b/libgit2-glib/ggit-clone-options.h
@@ -47,11 +47,6 @@ gboolean                   ggit_clone_options_get_is_bare         (GgitCloneOpti
 void                       ggit_clone_options_set_is_bare         (GgitCloneOptions        *options,
                                                                    gboolean                 bare);
 
-const gchar               *ggit_clone_options_get_remote_name     (GgitCloneOptions        *options);
-
-void                       ggit_clone_options_set_remote_name     (GgitCloneOptions        *options,
-                                                                   const gchar             *remote_name);
-
 const gchar               *ggit_clone_options_get_checkout_branch (GgitCloneOptions        *options);
 
 void                       ggit_clone_options_set_checkout_branch (GgitCloneOptions        *options,


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