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 obsolete electric quantities #1482

Merged
merged 1 commit into from
Dec 29, 2024
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
1 change: 0 additions & 1 deletion Build/build-pack-nano-nugets.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ function Invoke-BuildNanoNugets {
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Duration\UnitsNet.NanoFramework.Duration.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricCurrent\UnitsNet.NanoFramework.ElectricCurrent.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricPotential\UnitsNet.NanoFramework.ElectricPotential.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricPotentialDc\UnitsNet.NanoFramework.ElectricPotentialDc.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\ElectricResistance\UnitsNet.NanoFramework.ElectricResistance.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Frequency\UnitsNet.NanoFramework.Frequency.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
& $nuget pack "$root\UnitsNet.NanoFramework\GeneratedCode\Illuminance\UnitsNet.NanoFramework.Illuminance.nuspec" -Verbosity detailed -OutputDirectory "$nugetOutDir"
Expand Down
3 changes: 3 additions & 0 deletions CodeGen/Generators/UnitsNetGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ private static void GenerateResourceFiles(Quantity[] quantities, string resource
$"{resourcesDirectory}/{quantity.Name}.restext" :
$"{resourcesDirectory}/{quantity.Name}.{culture}.restext";

// Ensure parent folder exists
Directory.CreateDirectory(resourcesDirectory);

using var writer = File.CreateText(fileName);

foreach(Unit unit in quantity.Units)
Expand Down
27 changes: 0 additions & 27 deletions Common/UnitDefinitions/ApparentEnergy.json

This file was deleted.

27 changes: 0 additions & 27 deletions Common/UnitDefinitions/ApparentPower.json

This file was deleted.

34 changes: 0 additions & 34 deletions Common/UnitDefinitions/Capacitance.json

This file was deleted.

22 changes: 0 additions & 22 deletions Common/UnitDefinitions/ElectricPotentialAc.json

This file was deleted.

22 changes: 0 additions & 22 deletions Common/UnitDefinitions/ElectricPotentialDc.json

This file was deleted.

27 changes: 0 additions & 27 deletions Common/UnitDefinitions/ReactiveEnergy.json

This file was deleted.

27 changes: 0 additions & 27 deletions Common/UnitDefinitions/ReactivePower.json

This file was deleted.

47 changes: 0 additions & 47 deletions Common/UnitEnumValues.g.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,6 @@
"Revolution": 15,
"Tilt": 16
},
"ApparentEnergy": {
"KilovoltampereHour": 1,
"MegavoltampereHour": 2,
"VoltampereHour": 3
},
"ApparentPower": {
"Gigavoltampere": 1,
"Kilovoltampere": 2,
"Megavoltampere": 3,
"Voltampere": 4,
"Microvoltampere": 6,
"Millivoltampere": 7
},
"Area": {
"Acre": 1,
"Hectare": 2,
Expand Down Expand Up @@ -142,15 +129,6 @@
"KilogramPerJoule": 2,
"PoundPerMechanicalHorsepowerHour": 3
},
"Capacitance": {
"Farad": 1,
"Kilofarad": 2,
"Megafarad": 3,
"Microfarad": 4,
"Millifarad": 5,
"Nanofarad": 6,
"Picofarad": 7
},
"CoefficientOfThermalExpansion": {
"InverseDegreeCelsius": 1,
"InverseDegreeFahrenheit": 2,
Expand Down Expand Up @@ -358,13 +336,6 @@
"Volt": 5,
"Nanovolt": 11
},
"ElectricPotentialAc": {
"KilovoltAc": 1,
"MegavoltAc": 2,
"MicrovoltAc": 3,
"MillivoltAc": 4,
"VoltAc": 5
},
"ElectricPotentialChangeRate": {
"KilovoltPerHour": 1,
"KilovoltPerMicrosecond": 2,
Expand All @@ -387,13 +358,6 @@
"VoltPerMinute": 19,
"VoltPerSecond": 20
},
"ElectricPotentialDc": {
"KilovoltDc": 1,
"MegavoltDc": 2,
"MicrovoltDc": 3,
"MillivoltDc": 4,
"VoltDc": 5
},
"ElectricResistance": {
"Gigaohm": 1,
"Kiloohm": 2,
Expand Down Expand Up @@ -1226,17 +1190,6 @@
"DecimalFractionPerSecond": 1,
"PercentPerSecond": 2
},
"ReactiveEnergy": {
"KilovoltampereReactiveHour": 1,
"MegavoltampereReactiveHour": 2,
"VoltampereReactiveHour": 3
},
"ReactivePower": {
"GigavoltampereReactive": 1,
"KilovoltampereReactive": 2,
"MegavoltampereReactive": 3,
"VoltampereReactive": 4
},
"ReciprocalArea": {
"InverseSquareCentimeter": 1,
"InverseSquareDecimeter": 2,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading