Skip to content

Commit 563f43e

Browse files
committed
Remove all wire2 code
1 parent 5abef42 commit 563f43e

File tree

13 files changed

+3
-3348
lines changed

13 files changed

+3
-3348
lines changed

compiler/src/Compile.hs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ import qualified Type.Solve as Type
2828

2929
-- import System.IO.Unsafe (unsafePerformIO)
3030

31-
32-
-- @DEPRECATED for alpha12 release migration only
33-
import qualified Lamdera.Wire2.Core
34-
import qualified Lamdera.Wire2.Interfaces
35-
3631
import qualified Lamdera.Wire3.Core
3732
import qualified Lamdera.Wire3.Interfaces
3833
import qualified Lamdera.Wire3.Helpers as Lamdera.Wire
@@ -67,16 +62,14 @@ compile pkg ifaces modul = do
6762
let modul_ =
6863
modul
6964
& Lamdera.Wire3.Interfaces.modifyModul pkg ifaces
70-
-- & Lamdera.Wire2.Interfaces.modifyModul pkg ifaces
7165
-- moduleName = T.pack $ Data.Utf8.toChars $ Src.getName modul
7266

7367
-- () <- debugPassText "starting canonical" "" (pure ())
7468
canonical0 <- canonicalize pkg ifaces modul_
7569
-- () <- debugPassText "starting canonical2" moduleName (pure ())
7670

77-
-- Add Canonical Wire gens, i.e. the `w2_[en|de]code_TYPENAME` functions
71+
-- Add Canonical Wire gens, i.e. the `w3_[en|de]code_TYPENAME` functions
7872
canonical2 <- Lamdera.Wire3.Core.addWireGenerations canonical0 pkg ifaces modul_
79-
-- canonical2 <- Lamdera.Wire2.Core.addWireGenerations canonical1 pkg ifaces modul_
8073

8174
-- () <- unsafePerformIO $ do
8275
-- case (pkg, Src.getName modul) of

elm.cabal

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ Executable lamdera
264264
Lamdera.Types
265265
Lamdera.Update
266266
Lamdera.Version
267-
Lamdera.Wire2.Core
268-
Lamdera.Wire2.Decoder
269-
Lamdera.Wire2.Encoder
270-
Lamdera.Wire2.Graph
271-
Lamdera.Wire2.Helpers
272-
Lamdera.Wire2.Interfaces
273267
Lamdera.Wire3.Core
274268
Lamdera.Wire3.Decoder
275269
Lamdera.Wire3.Encoder
@@ -298,8 +292,7 @@ Executable lamdera
298292

299293
-- Lamdera Legacy --
300294
Lamdera.Legacy
301-
-- Wire.Source
302-
-- Wire.Source2
295+
-- Wire.Source3
303296

304297
-- Fusion
305298
-- Fusion.Types

extra/Lamdera/Evergreen/MigrationHarness.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ decodeAndUpgradeFor migrationSequence nextVersion valueType = do
128128
[text|
129129
$nextVersion_ ->
130130
decodeType $valueTypeInt version bytes T$nextVersion_.w3_decode_$valueType
131-
|> fallback (\_ -> decodeType $valueTypeInt version bytes T$nextVersion_.w2_decode_$valueType)
132131
|> upgradeIsCurrent
133132
|> otherwiseError
134133
|]
@@ -262,7 +261,6 @@ migrationForType migrationSequence migrationsForVersion startVersion finalVersio
262261
then
263262
[text|
264263
decodeType $valueTypeInt $finalVersion_ bytes T$finalVersion_.w3_decode_$tipe
265-
|> fallback (\_ -> decodeType $valueTypeInt $finalVersion_ bytes T$finalVersion_.w2_decode_$tipe)
266264
|> upgradeSucceeds
267265
|> otherwiseError
268266
|]
@@ -278,7 +276,6 @@ migrationForType migrationSequence migrationsForVersion startVersion finalVersio
278276
then
279277
[text|
280278
decodeType $valueTypeInt $startVersion_ bytes T$startVersion_.w3_decode_$tipe
281-
|> fallback (\_ -> decodeType $valueTypeInt $startVersion_ bytes T$startVersion_.w2_decode_$tipe)
282279
$intermediateMigrationsFormatted
283280
|> upgradeSucceeds
284281
|> otherwiseError

0 commit comments

Comments
 (0)