From ce90a407c7b873780456b182d82d3ba26adbd182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 22 Jun 2011 15:34:37 +0200 Subject: [PATCH] Remove the repo param from git_transport_new MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- include/git2/transport.h | 2 +- src/transport.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/git2/transport.h b/include/git2/transport.h index a12b11b34..01883f2ca 100644 --- a/include/git2/transport.h +++ b/include/git2/transport.h @@ -43,7 +43,7 @@ GIT_BEGIN_DECL * @param tranport the transport for the url * @param url the url of the repo */ -GIT_EXTERN(int) git_transport_new(git_transport **transport, git_repository *repo, const char *url); +GIT_EXTERN(int) git_transport_new(git_transport **transport, const char *url); GIT_EXTERN(int) git_transport_connect(git_transport *transport, git_net_direction direction); diff --git a/src/transport.c b/src/transport.c index 59aecb4cf..d71560bb3 100644 --- a/src/transport.c +++ b/src/transport.c @@ -49,7 +49,7 @@ int git_transport_dummy(git_transport **GIT_UNUSED(transport)) return git__throw(GIT_ENOTIMPLEMENTED, "This protocol isn't implemented. Sorry"); } -int git_transport_new(git_transport **out, git_repository *repo, const char *url) +int git_transport_new(git_transport **out, const char *url) { git_transport_cb fn; git_transport *transport; @@ -65,8 +65,6 @@ int git_transport_new(git_transport **out, git_repository *repo, const char *url if (transport->url == NULL) return GIT_ENOMEM; - transport->repo = repo; - *out = transport; return GIT_SUCCESS;