proto: Remove unused types (#36269)

This PR removes some unused types from the RPC protocol.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-08-15 15:46:23 -04:00 committed by GitHub
parent 75f85b3aaa
commit 2a9d4599cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 47 deletions

View file

@ -998,19 +998,6 @@ impl RequestUsage {
}
}
pub fn from_proto(amount: u32, limit: proto::UsageLimit) -> Option<Self> {
let limit = match limit.variant? {
proto::usage_limit::Variant::Limited(limited) => {
UsageLimit::Limited(limited.limit as i32)
}
proto::usage_limit::Variant::Unlimited(_) => UsageLimit::Unlimited,
};
Some(RequestUsage {
limit,
amount: amount as i32,
})
}
fn from_headers(
limit_name: &str,
amount_name: &str,