File tree Expand file tree Collapse file tree 3 files changed +5
-23
lines changed Expand file tree Collapse file tree 3 files changed +5
-23
lines changed Original file line number Diff line number Diff line change 1
1
# Revision history for ` cardano-ledger-byron `
2
2
3
+ ## 1.3.0.0
4
+
5
+ * Remove ` osHelper ` and ` archHelper ` functions.
6
+
3
7
## 1.2.0.0
4
8
5
9
* Added ` Test.Cardano.Chain.Binary.Cddl ` module
Original file line number Diff line number Diff line change 1
1
cabal-version : 3.0
2
2
name : cardano-ledger-byron
3
- version : 1.2 .0.0
3
+ version : 1.3 .0.0
4
4
license : Apache-2.0
5
5
6
6
author : IOHK
@@ -233,7 +233,6 @@ library
233
233
-Wunused-packages
234
234
235
235
build-depends :
236
- Cabal-syntax,
237
236
aeson,
238
237
base >= 4.14 && < 5 ,
239
238
base58-bytestring,
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ module Cardano.Chain.Update.SystemTag (
12
12
SystemTagError (.. ),
13
13
checkSystemTag ,
14
14
systemTagMaxLength ,
15
- osHelper ,
16
- archHelper ,
17
15
)
18
16
where
19
17
@@ -36,8 +34,6 @@ import Cardano.Prelude hiding (cborError)
36
34
import Data.Aeson (ToJSON , ToJSONKey )
37
35
import Data.Data (Data )
38
36
import qualified Data.Text as T
39
- import Distribution.System (Arch (.. ), OS (.. ))
40
- import Distribution.Text (display )
41
37
import Formatting (bprint , int , stext )
42
38
import qualified Formatting.Buildable as B
43
39
import NoThunks.Class (NoThunks (.. ))
@@ -119,20 +115,3 @@ checkSystemTag (SystemTag tag)
119
115
| T. length tag > systemTagMaxLength = throwError $ SystemTagTooLong tag
120
116
| T. any (not . isAscii) tag = throwError $ SystemTagNotAscii tag
121
117
| otherwise = pure ()
122
-
123
- -- | Helper to turn an @OS@ into a @Text@ compatible with the @systemTag@
124
- -- previously used in 'configuration.yaml'
125
- osHelper :: OS -> Text
126
- osHelper sys = case sys of
127
- Windows -> " win"
128
- OSX -> " macos"
129
- Linux -> " linux"
130
- _ -> toS $ display sys
131
-
132
- -- | Helper to turn an @Arch@ into a @Text@ compatible with the @systemTag@
133
- -- previously used in 'configuration.yaml'
134
- archHelper :: Arch -> Text
135
- archHelper archt = case archt of
136
- I386 -> " 32"
137
- X86_64 -> " 64"
138
- _ -> toS $ display archt
You can’t perform that action at this time.
0 commit comments