Skip to content

Commit 9da9f56

Browse files
authored
Remove dead code from Function.hs
1 parent 15f6608 commit 9da9f56

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

unison-runtime/src/Unison/Runtime/Foreign/Function.hs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,25 +2052,6 @@ avroDecodeBinary _env readSchema bytes = do
20522052
Left (_, _, err) -> pure $ encodeVal @(Either String Val) (Left err)
20532053
Right (_, _, value) -> pure $ encodeVal @(Either String Val) (Right (avroEncodeValue value))
20542054

2055-
-- go schema = case schema of
2056-
-- Enum _ t
2057-
-- | TT.avroReadSchemaNullTag == t -> pure (Right avroNull)
2058-
-- | TT.avroReadSchemaBooleanTag == t -> do
2059-
-- b <- Get.getWord8
2060-
-- pure (if b == 0 then Right avroFalse else Right avroTrue)
2061-
-- | TT.avroReadSchemaIntTag == t -> do
2062-
-- n <- Get.var
2063-
-- where
2064-
-- getNonNegative :: (Bits i, Integral i) => Get i
2065-
-- getNonNegative = do
2066-
-- orig <- getWord8s
2067-
-- return $! foldl' (\a x -> (a `shiftL` 7) + fromIntegral x) 0 (reverse orig)
2068-
-- getWord8s :: Get [Word8]
2069-
-- getWord8s = do
2070-
-- w <- getWord8
2071-
-- let msb = w `testBit` 7 in
2072-
-- (w .&. 0x7F :) <$> if msb then getWord8s else return []
2073-
20742055
-- A ForeignConvention explains how to encode foreign values as
20752056
-- unison types. Depending on the situation, this can take three
20762057
-- forms.

0 commit comments

Comments
 (0)