From c8bc7a7fec5e72c57ef956b4b32f1c20059a79b7 Mon Sep 17 00:00:00 2001 From: Jamie Gaskins Date: Sat, 30 Nov 2024 20:20:53 -0600 Subject: [PATCH] Remove unnecessary code --- src/pq/param.cr | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pq/param.cr b/src/pq/param.cr index 1659b26..cb34190 100644 --- a/src/pq/param.cr +++ b/src/pq/param.cr @@ -5,7 +5,6 @@ module PQ # :nodoc: record Param, slice : Slice(UInt8), size : Int32, format : Format do enum Format : Int16 - None = -1 Text = 0 Binary = 1 end @@ -54,7 +53,6 @@ module PQ {% for type in %w[Int16 Int32 Int64 Float32 Float64] %} def self.encode(val : {{type.id}}, into slice : Bytes = Bytes.new(sizeof(typeof(val)))) IO::ByteFormat::NetworkEndian.encode val, slice - # pp value: val, type: typeof(val), slice: slice binary slice end {% end %}