Skip to content

Commit ed089da

Browse files
committed
Get rid of MonetKind, we're not using it
1 parent da65dff commit ed089da

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/monettypes.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,6 @@
77
// Copyright 2024 MonetDB Foundation
88
use std::fmt;
99

10-
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
11-
pub enum MonetKind {
12-
/// A common integer, that is, up to i64.
13-
Integer,
14-
/// Huge integers are sometimes treated differently
15-
HugeInteger,
16-
/// Decimals have precision and scale and need to be extracted differently
17-
Decimal,
18-
/// UTF-8 encoded text without NUL bytes
19-
Text,
20-
}
21-
2210
pub type Precision = u8;
2311

2412
pub type Scale = u8;
@@ -56,15 +44,6 @@ impl fmt::Display for MonetType {
5644
}
5745

5846
impl MonetType {
59-
pub fn kind(&self) -> MonetKind {
60-
use MonetType::*;
61-
match self {
62-
Bool | TinyInt | SmallInt | Int | BigInt | Oid => MonetKind::Integer,
63-
HugeInt => MonetKind::HugeInteger,
64-
Decimal(_, _) => MonetKind::Decimal,
65-
Varchar(_) => MonetKind::Text,
66-
}
67-
}
6847

6948
pub fn prototype(code: &str) -> Option<Self> {
7049
use MonetType::*;

0 commit comments

Comments
 (0)