You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2016/07/14 20:41:54 UTC

[10/20] jiffy commit: updated refs/heads/master to d3c00e1

Remove old debug printing


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/e43ea64a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/e43ea64a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/e43ea64a

Branch: refs/heads/master
Commit: e43ea64ae0d227af5dd003132234cdf4494d781d
Parents: c566977
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Dec 2 11:23:30 2015 -0600
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Wed Dec 2 11:23:30 2015 -0600

----------------------------------------------------------------------
 c_src/decoder.c | 3 ---
 c_src/encoder.c | 3 ---
 2 files changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/e43ea64a/c_src/decoder.c
----------------------------------------------------------------------
diff --git a/c_src/decoder.c b/c_src/decoder.c
index 12debb6..34cf467 100644
--- a/c_src/decoder.c
+++ b/c_src/decoder.c
@@ -759,10 +759,7 @@ decode_iter(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
     objs = argv[3];
     curr = argv[4];
 
-    //fprintf(stderr, "Parsing:\r\n");
     while(d->i < bin.size) {
-        //fprintf(stderr, "state: %d\r\n", dec_curr(d));
-
         if(should_yield(env, &bytes_read, d->bytes_per_red)) {
             return enif_make_tuple5(
                     env,

http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/e43ea64a/c_src/encoder.c
----------------------------------------------------------------------
diff --git a/c_src/encoder.c b/c_src/encoder.c
index 0029086..9c6f59d 100644
--- a/c_src/encoder.c
+++ b/c_src/encoder.c
@@ -541,7 +541,6 @@ enc_map_to_ejson(ErlNifEnv* env, ERL_NIF_TERM map, ERL_NIF_TERM* out)
     ERL_NIF_TERM val;
 
     if(!enif_get_map_size(env, map, &size)) {
-        fprintf(stderr, "bad map size\r\n");
         return 0;
     }
 
@@ -553,14 +552,12 @@ enc_map_to_ejson(ErlNifEnv* env, ERL_NIF_TERM map, ERL_NIF_TERM* out)
     }
 
     if(!enif_map_iterator_create(env, map, &iter, ERL_NIF_MAP_ITERATOR_HEAD)) {
-        fprintf(stderr, "bad iterator create\r\n");
         return 0;
     }
 
     do {
         if(!enif_map_iterator_get_pair(env, &iter, &key, &val)) {
             enif_map_iterator_destroy(env, &iter);
-            fprintf(stderr, "bad get pair\r\n");
             return 0;
         }
         tuple = enif_make_tuple2(env, key, val);