mirror of
https://github.com/logos-messaging/nim-chat-sdk.git
synced 2026-01-06 16:13:10 +00:00
chore: clear unused code
This commit is contained in:
parent
baa41c9e81
commit
2ce624add3
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user