chore: clear unused code

This commit is contained in:
kaichaosun 2025-08-05 15:45:32 +08:00
parent baa41c9e81
commit 2ce624add3
No known key found for this signature in database
GPG Key ID: 223E0F992F4F03BF
2 changed files with 0 additions and 24 deletions

View File

@ -254,24 +254,3 @@ proc handleSegmentationLayer*(handler: SegmentationHander, message: var Message)
proc cleanupSegments*(s: SegmentationHander): Result[void, string] =
discard
proc demo() =
let
bufSize = 64 # byte count per buffer, must be a multiple of 64
buffers = 239 # number of data symbols
parity = 17 # number of parity symbols
var
encoderRes = LeoEncoder.init(bufSize, buffers, parity)
decoderRes = LeoDecoder.init(bufSize, buffers, parity)
assert encoderRes.isOk
assert decoderRes.isOk
when isMainModule:
demo()
proc add2*(x, y: int): int =
## Adds two numbers together.
return x + y

View File

@ -13,9 +13,6 @@ import chat_sdk/segmentation
import chat_sdk/migration
import chat_sdk/db
test "can add":
check add2(5, 5) == 10
proc newInMemoryPersistence(): SegmentationPersistence =
let conn = open(":memory:", "", "", "")
# Define the tables (same schema as expected in your app)