Commit ce90a407c7b873780456b182d82d3ba26adbd182

Carlos Martín Nieto 2011-06-22T15:34:37

Remove the repo param from git_transport_new Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>

diff --git a/include/git2/transport.h b/include/git2/transport.h
index a12b11b..01883f2 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 59aecb4..d71560b 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;