summaryrefslogtreecommitdiff
path: root/libpanto/src/pricing.zig
diff options
context:
space:
mode:
Diffstat (limited to 'libpanto/src/pricing.zig')
-rw-r--r--libpanto/src/pricing.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/libpanto/src/pricing.zig b/libpanto/src/pricing.zig
index 97dfe38..0565593 100644
--- a/libpanto/src/pricing.zig
+++ b/libpanto/src/pricing.zig
@@ -83,13 +83,6 @@ pub const Pricing = struct {
if (r >= @as(f64, @floatFromInt(std.math.maxInt(u64)))) return std.math.maxInt(u64);
return @intFromFloat(r);
}
-
- /// Inverse of `fromDollarsPerMtok`: convert the integer representation
- /// back to USD per million tokens (the human-friendly unit). Returns
- /// 0.0 for the null case.
- pub fn toDollarsPerMtok(micro_cents_per_token: u64) f64 {
- return @as(f64, @floatFromInt(micro_cents_per_token)) / 100.0;
- }
};
// =============================================================================