Skip to content

Commit 073ddf1

Browse files
committed
cardano-ledger-byron: remove Cabal-syntax dependency
Grepping across various projects/GitHub code search did not reveal any usage.
1 parent 35b7b21 commit 073ddf1

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

eras/byron/ledger/impl/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Revision history for `cardano-ledger-byron`
22

3+
## 1.3.0.0
4+
5+
* Remove `osHelper` and `archHelper` functions.
6+
37
## 1.2.0.0
48

59
* Added `Test.Cardano.Chain.Binary.Cddl` module

eras/byron/ledger/impl/cardano-ledger-byron.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 3.0
22
name: cardano-ledger-byron
3-
version: 1.2.0.0
3+
version: 1.3.0.0
44
license: Apache-2.0
55
maintainer: [email protected]
66
author: IOHK
@@ -233,7 +233,6 @@ library
233233
-Wunused-packages
234234

235235
build-depends:
236-
Cabal-syntax,
237236
aeson,
238237
base >=4.14 && <5,
239238
base58-bytestring,

eras/byron/ledger/impl/src/Cardano/Chain/Update/SystemTag.hs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ module Cardano.Chain.Update.SystemTag (
1212
SystemTagError (..),
1313
checkSystemTag,
1414
systemTagMaxLength,
15-
osHelper,
16-
archHelper,
1715
)
1816
where
1917

@@ -36,8 +34,6 @@ import Cardano.Prelude hiding (cborError)
3634
import Data.Aeson (ToJSON, ToJSONKey)
3735
import Data.Data (Data)
3836
import qualified Data.Text as T
39-
import Distribution.System (Arch (..), OS (..))
40-
import Distribution.Text (display)
4137
import Formatting (bprint, int, stext)
4238
import qualified Formatting.Buildable as B
4339
import NoThunks.Class (NoThunks (..))
@@ -119,20 +115,3 @@ checkSystemTag (SystemTag tag)
119115
| T.length tag > systemTagMaxLength = throwError $ SystemTagTooLong tag
120116
| T.any (not . isAscii) tag = throwError $ SystemTagNotAscii tag
121117
| 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

0 commit comments

Comments
 (0)