Skip to content

Commit

Permalink
rtfeldman#446 remove unused background colours from Text.elm
Browse files Browse the repository at this point in the history
  • Loading branch information
frankschmitt committed Oct 18, 2020
1 parent cad579a commit 85ece38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 54 deletions.
23 changes: 13 additions & 10 deletions elm/review/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ config : List Rule
config =
[ NoUnused.Variables.rule
]



{-
config =
[ NoUnused.CustomTypeConstructors.rule []
, NoUnused.CustomTypeConstructorArgs.rule
, NoUnused.Dependencies.rule
, NoUnused.Exports.rule
, NoUnused.Modules.rule
, NoUnused.Parameters.rule
, NoUnused.Patterns.rule
, NoUnused.Variables.rule
]
config =
[ NoUnused.CustomTypeConstructors.rule []
, NoUnused.CustomTypeConstructorArgs.rule
, NoUnused.Dependencies.rule
, NoUnused.Exports.rule
, NoUnused.Modules.rule
, NoUnused.Parameters.rule
, NoUnused.Patterns.rule
, NoUnused.Variables.rule
]
-}
44 changes: 0 additions & 44 deletions elm/src/Console/Text.elm
Original file line number Diff line number Diff line change
Expand Up @@ -158,50 +158,6 @@ dark txt =



-- BACKGROUND COLORS --


bgRed : String -> Text
bgRed =
Text { foreground = Default, background = Red, style = Normal, modifiers = [] }


bgGreen : String -> Text
bgGreen =
Text { foreground = Default, background = Green, style = Normal, modifiers = [] }


bgYellow : String -> Text
bgYellow =
Text { foreground = Default, background = Yellow, style = Normal, modifiers = [] }


bgBlack : String -> Text
bgBlack =
Text { foreground = Default, background = Black, style = Normal, modifiers = [] }


bgBlue : String -> Text
bgBlue =
Text { foreground = Default, background = Blue, style = Normal, modifiers = [] }


bgMagenta : String -> Text
bgMagenta =
Text { foreground = Default, background = Magenta, style = Normal, modifiers = [] }


bgCyan : String -> Text
bgCyan =
Text { foreground = Default, background = Cyan, style = Normal, modifiers = [] }


bgWhite : String -> Text
bgWhite =
Text { foreground = Default, background = White, style = Normal, modifiers = [] }



-- STYLES --


Expand Down

0 comments on commit 85ece38

Please sign in to comment.