From 6002511052e0a3c3eaecdb7c7968ed40afaeb5f6 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 12 Aug 2019 16:41:33 +0300 Subject: [PATCH] pg: remove printf --- compiler/query.v | 2 +- examples/vweb/test_app.v | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/query.v b/compiler/query.v index 402adfd77a..9f666cb42a 100644 --- a/compiler/query.v +++ b/compiler/query.v @@ -91,7 +91,7 @@ ${obj_gen.str()} p.cgen.insert_before(' array_pg__Row rows = pg__DB_exec(db, tos2("$q")); -printf("ROWS LEN=%d\\n", rows.len); +//printf("ROWS LEN=%d\\n", rows.len); // TODO preallocate array arr_$tmp = new_array(0, 0, sizeof($table_name)); for (int i = 0; i < rows.len; i++) { diff --git a/examples/vweb/test_app.v b/examples/vweb/test_app.v index 65599620e7..9af020aefe 100644 --- a/examples/vweb/test_app.v +++ b/examples/vweb/test_app.v @@ -23,11 +23,9 @@ pub fn (app mut App) json_endpoint() { app.vweb.json('{"a": 3}') } -/* pub fn (app mut App) index() { $vweb.html() } -*/ pub fn (app mut App) text() { app.vweb.text('hello world')