Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Glaske committed Mar 25, 2022
1 parent 8df1fa9 commit 385968a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions distance.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,24 +103,6 @@ func (d Distance) String() string {
if um > 0 {
out += fmt.Sprintf("%dμm", um)
}
/*
case d < Millimeter:
val = float64(d) / float64(Micrometer)
return fmt.Sprintf("%sμm", fmtWholeOrFrac(val))
case d >= Millimeter && d < Meter:
cm := d / Centimeter
val = float64(d%Centimeter) / float64(Millimeter)
if cm > 0 {
out = fmt.Sprintf("%dcm", cm)
}
if val > 0 {
out += fmt.Sprintf("%smm", fmtWholeOrFrac(val))
}
return out
case d >= Meter && d < Kilometer:
val = float64(d) / float64(Meter)
return fmt.Sprintf("%sM", fmtWholeOrFrac(val))
*/
}
}
return out
Expand Down

0 comments on commit 385968a

Please sign in to comment.