From d59343730665624451c47451b0d89cdd6f4a39fc Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Tue, 21 May 2013 14:11:37 +0200 Subject: [PATCH] Removed: unused variables in tree.c (thanks @delanne) --- src/tree.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/tree.c b/src/tree.c index b7177f3..378792d 100644 --- a/src/tree.c +++ b/src/tree.c @@ -294,8 +294,6 @@ Tree_diff_to_workdir(Tree *self, PyObject *args) git_repository* repo; int err; - Diff *py_diff; - if (!PyArg_ParseTuple(args, "|IHH", &opts.flags, &opts.context_lines, &opts.interhunk_lines)) return NULL; @@ -332,12 +330,9 @@ Tree_diff_to_index(Tree *self, PyObject *args, PyObject *kwds) { git_diff_options opts = GIT_DIFF_OPTIONS_INIT; git_diff_list *diff; - git_index* index; git_repository* repo; int err; - char *keywords[] = {"obj", "flags", NULL}; - Diff *py_diff; Index *py_idx = NULL; if (!PyArg_ParseTuple(args, "O!|IHH", &IndexType, &py_idx, &opts.flags, @@ -385,7 +380,6 @@ Tree_diff_to_tree(Tree *self, PyObject *args, PyObject *kwds) char *keywords[] = {"obj", "flags", "context_lines", "interhunk_lines", "swap", NULL}; - Diff *py_diff; Tree *py_tree = NULL; if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O!IHHi", keywords,