Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaskins authored Dec 1, 2024
1 parent 0fc1de7 commit c8bc7a7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pq/param.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 %}
Expand Down

0 comments on commit c8bc7a7

Please sign in to comment.