Commit ce90a407 by Carlos Martín Nieto

Remove the repo param from git_transport_new

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent 4e913309
...@@ -43,7 +43,7 @@ GIT_BEGIN_DECL ...@@ -43,7 +43,7 @@ GIT_BEGIN_DECL
* @param tranport the transport for the url * @param tranport the transport for the url
* @param url the url of the repo * @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); GIT_EXTERN(int) git_transport_connect(git_transport *transport, git_net_direction direction);
......
...@@ -49,7 +49,7 @@ int git_transport_dummy(git_transport **GIT_UNUSED(transport)) ...@@ -49,7 +49,7 @@ int git_transport_dummy(git_transport **GIT_UNUSED(transport))
return git__throw(GIT_ENOTIMPLEMENTED, "This protocol isn't implemented. Sorry"); 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_cb fn;
git_transport *transport; git_transport *transport;
...@@ -65,8 +65,6 @@ int git_transport_new(git_transport **out, git_repository *repo, const char *url ...@@ -65,8 +65,6 @@ int git_transport_new(git_transport **out, git_repository *repo, const char *url
if (transport->url == NULL) if (transport->url == NULL)
return GIT_ENOMEM; return GIT_ENOMEM;
transport->repo = repo;
*out = transport; *out = transport;
return GIT_SUCCESS; return GIT_SUCCESS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment