Skip to content

Commit bc75368

Browse files
committed
Remove unused set_srid method from EwkbRead trait
1 parent 8c033ec commit bc75368

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/ewkb.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ pub enum PointType {
6262
pub trait EwkbRead: fmt::Debug + Sized {
6363
fn point_type() -> PointType;
6464

65-
fn set_srid(&mut self, _srid: Option<i32>) {
66-
}
67-
6865
fn read_ewkb<R: Read>(raw: &mut R) -> Result<Self, Error> {
6966
let byte_order = raw.read_i8()?;
7067
let is_be = byte_order == 0i8;
@@ -256,9 +253,6 @@ macro_rules! impl_point_read_traits {
256253
fn point_type() -> PointType {
257254
PointType::$ptype
258255
}
259-
fn set_srid(&mut self, srid: Option<i32>) {
260-
self.srid = srid;
261-
}
262256
fn read_ewkb_body<R: Read>(raw: &mut R, is_be: bool, srid: Option<i32>) -> Result<Self, Error> {
263257
let x = read_f64(raw, is_be)?;
264258
let y = read_f64(raw, is_be)?;
@@ -422,9 +416,6 @@ macro_rules! impl_read_for_point_container_type {
422416
fn point_type() -> PointType {
423417
P::point_type()
424418
}
425-
fn set_srid(&mut self, srid: Option<i32>) {
426-
self.srid = srid;
427-
}
428419
fn read_ewkb_body<R: Read>(raw: &mut R, is_be: bool, srid: Option<i32>) -> Result<Self, Error> {
429420
let mut points: Vec<P> = vec![];
430421
let size = read_u32(raw, is_be)? as usize;
@@ -443,9 +434,6 @@ macro_rules! impl_read_for_point_container_type {
443434
fn point_type() -> PointType {
444435
P::point_type()
445436
}
446-
fn set_srid(&mut self, srid: Option<i32>) {
447-
self.srid = srid;
448-
}
449437
fn read_ewkb_body<R: Read>(raw: &mut R, is_be: bool, srid: Option<i32>) -> Result<Self, Error> {
450438
let mut points: Vec<P> = vec![];
451439
let size = read_u32(raw, is_be)? as usize;
@@ -466,9 +454,6 @@ macro_rules! impl_read_for_geometry_container_type {
466454
fn point_type() -> PointType {
467455
P::point_type()
468456
}
469-
fn set_srid(&mut self, srid: Option<i32>) {
470-
self.srid = srid;
471-
}
472457
fn read_ewkb_body<R: Read>(raw: &mut R, is_be: bool, srid: Option<i32>) -> Result<Self, Error> {
473458
let mut $itemname: Vec<$itemtype<P>> = vec![];
474459
let size = read_u32(raw, is_be)? as usize;
@@ -486,9 +471,6 @@ macro_rules! impl_read_for_geometry_container_type {
486471
fn point_type() -> PointType {
487472
P::point_type()
488473
}
489-
fn set_srid(&mut self, srid: Option<i32>) {
490-
self.srid = srid;
491-
}
492474
fn read_ewkb_body<R: Read>(raw: &mut R, is_be: bool, srid: Option<i32>) -> Result<Self, Error> {
493475
let mut $itemname: Vec<$itemtype<P>> = vec![];
494476
let size = read_u32(raw, is_be)? as usize;

0 commit comments

Comments
 (0)