]> git.proxmox.com Git - libgit2.git/commitdiff
Cleanup
authorMichael Schubert <schu@schu.io>
Sat, 19 May 2012 11:20:55 +0000 (13:20 +0200)
committerMichael Schubert <schu@schu.io>
Sat, 19 May 2012 16:49:32 +0000 (18:49 +0200)
* indexer: remove leftover printf

* commit: remove unused macros COMMIT_BASIC_PARSE, COMMIT_FULL_PARSE
  and COMMIT_PRINT

src/commit.c
src/indexer.c

index 2bf12f3a500609be0f9f5b8a04407fc3342b2858..2f40dc67dde3f9dffccb3cae616f1e840201bd4e 100644 (file)
 
 #include <stdarg.h>
 
-#define COMMIT_BASIC_PARSE 0x0
-#define COMMIT_FULL_PARSE 0x1
-
-#define COMMIT_PRINT(commit) {\
-       char oid[41]; oid[40] = 0;\
-       git_oid_fmt(oid, &commit->object.id);\
-       printf("Oid: %s | In degree: %d | Time: %u\n", oid, commit->in_degree, commit->commit_time);\
-}
-
 static void clear_parents(git_commit *commit)
 {
        unsigned int i;
index 6f735e6518216b08e3a9521f56d18824cc51836a..f0e0a6381a2c39848ef5275045a73eae162128bb 100644 (file)
@@ -839,7 +839,6 @@ int git_indexer_run(git_indexer *idx, git_indexer_stats *stats)
                git_oid_cpy(&pentry->sha1, &oid);
                pentry->offset = entry_start;
                git_oid_fmt(fmt, &oid);
-               printf("adding %s to cache\n", fmt);
                error = git_vector_insert(&idx->pack->cache, pentry);
                if (error < 0)
                        goto cleanup;