diff options
author | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2025-05-30 19:48:42 -0500 |
---|---|---|
committer | Adrien Hopkins <adrien.p.hopkins@gmail.com> | 2025-05-30 19:54:19 -0500 |
commit | e86fb71e1665cb9e8511bafd54df0fb8cbca5adc (patch) | |
tree | cbc3aa8c4a4848c0a0f9e332fcab576ad0c10e27 /src/main/java/sevenUnits/unit/LinearUnit.java | |
parent | 8df414ced2018e685f034424c3d8c7813d18805c (diff) |
Remove Unitlike/MultiUnit
I ended up never using this code - it was simpler to just use lists of
units and values. Making a whole new object for lists of units, and an
abstract class for things that convert things other than doubles, is
needlessly complicated, and doesn't solve any major issues. For
example, I still need to store each Unitlike type in a different
collection, because it will have a different type.
Diffstat (limited to 'src/main/java/sevenUnits/unit/LinearUnit.java')
-rw-r--r-- | src/main/java/sevenUnits/unit/LinearUnit.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/sevenUnits/unit/LinearUnit.java b/src/main/java/sevenUnits/unit/LinearUnit.java index a230f28..3c3703c 100644 --- a/src/main/java/sevenUnits/unit/LinearUnit.java +++ b/src/main/java/sevenUnits/unit/LinearUnit.java @@ -75,15 +75,6 @@ public final class LinearUnit extends Unit { } /** - * @return the base unit associated with {@code unitlike}, as a - * {@code LinearUnit}. - * @since 2020-10-02 - */ - public static LinearUnit getBase(final Unitlike<?> unit) { - return new LinearUnit(unit.getBase(), 1, NameSymbol.EMPTY); - } - - /** * Gets a {@code LinearUnit} from a unit base and a conversion factor. In * other words, gets the product of {@code unitBase} and * {@code conversionFactor}, expressed as a {@code LinearUnit}. |