From b1730b768d9f2517a8cbf3e093d1413130b9182e Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 31 Oct 2019 12:15:45 +0300 Subject: [PATCH] remove a println() --- vlib/compiler/main.v | 1 - vlib/gx/gx.v | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/vlib/compiler/main.v b/vlib/compiler/main.v index 00f6ad5da5..cf7c78b52c 100644 --- a/vlib/compiler/main.v +++ b/vlib/compiler/main.v @@ -843,7 +843,6 @@ pub fn new_v(args[]string) &V { // `v -o dir/exec`, create "dir/" if it doesn't exist if out_name.contains(os.path_separator) { d := out_name.all_before_last(os.path_separator) - println('DIRRR ' + d) if !os.dir_exists(d) { println('creating a new directory "$d"') os.mkdir(d) diff --git a/vlib/gx/gx.v b/vlib/gx/gx.v index 0996d69529..d8e2506c44 100644 --- a/vlib/gx/gx.v +++ b/vlib/gx/gx.v @@ -75,16 +75,14 @@ pub fn (c Color) str() string { } pub fn (a Color) eq(b Color) bool { - return a.r == b.r && - a.g == b.g && - a.b == b.b + return a.r == b.r && a.g == b.g && a.b == b.b } pub fn rgb(r, g, b int) Color { res := Color { - r: r, - g: g, - b: b, + r: r + g: g + b: b } return res }