Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused FormatSettings interface and related types. #2397

Merged
merged 1 commit into from
Dec 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/format/align.pony
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
primitive AlignLeft
primitive AlignRight
primitive AlignCenter

type Align is
( AlignLeft
| AlignRight
| AlignCenter )
97 changes: 0 additions & 97 deletions packages/format/format_settings.pony

This file was deleted.

41 changes: 41 additions & 0 deletions packages/format/format_spec.pony
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
trait val FormatSpec

primitive FormatDefault is FormatSpec

primitive FormatUTF32 is FormatSpec
primitive FormatBinary is FormatSpec
primitive FormatBinaryBare is FormatSpec
primitive FormatOctal is FormatSpec
primitive FormatOctalBare is FormatSpec
primitive FormatHex is FormatSpec
primitive FormatHexBare is FormatSpec
primitive FormatHexSmall is FormatSpec
primitive FormatHexSmallBare is FormatSpec

type FormatInt is
( FormatDefault
| FormatUTF32
| FormatBinary
| FormatBinaryBare
| FormatOctal
| FormatOctalBare
| FormatHex
| FormatHexBare
| FormatHexSmall
| FormatHexSmallBare )

primitive FormatExp is FormatSpec
primitive FormatExpLarge is FormatSpec
primitive FormatFix is FormatSpec
primitive FormatFixLarge is FormatSpec
primitive FormatGeneral is FormatSpec
primitive FormatGeneralLarge is FormatSpec

type FormatFloat is
( FormatDefault
| FormatExp
| FormatExpLarge
| FormatFix
| FormatFixLarge
| FormatGeneral
| FormatGeneralLarge )
11 changes: 11 additions & 0 deletions packages/format/prefix_spec.pony
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
trait val PrefixSpec

primitive PrefixDefault is PrefixSpec

primitive PrefixSpace is PrefixSpec
primitive PrefixSign is PrefixSpec

type PrefixNumber is
( PrefixDefault
| PrefixSpace
| PrefixSign )