@@ -62,9 +62,6 @@ pub enum PointType {
62
62
pub trait EwkbRead : fmt:: Debug + Sized {
63
63
fn point_type ( ) -> PointType ;
64
64
65
- fn set_srid ( & mut self , _srid : Option < i32 > ) {
66
- }
67
-
68
65
fn read_ewkb < R : Read > ( raw : & mut R ) -> Result < Self , Error > {
69
66
let byte_order = raw. read_i8 ( ) ?;
70
67
let is_be = byte_order == 0i8 ;
@@ -256,9 +253,6 @@ macro_rules! impl_point_read_traits {
256
253
fn point_type( ) -> PointType {
257
254
PointType :: $ptype
258
255
}
259
- fn set_srid( & mut self , srid: Option <i32 >) {
260
- self . srid = srid;
261
- }
262
256
fn read_ewkb_body<R : Read >( raw: & mut R , is_be: bool , srid: Option <i32 >) -> Result <Self , Error > {
263
257
let x = read_f64( raw, is_be) ?;
264
258
let y = read_f64( raw, is_be) ?;
@@ -422,9 +416,6 @@ macro_rules! impl_read_for_point_container_type {
422
416
fn point_type( ) -> PointType {
423
417
P :: point_type( )
424
418
}
425
- fn set_srid( & mut self , srid: Option <i32 >) {
426
- self . srid = srid;
427
- }
428
419
fn read_ewkb_body<R : Read >( raw: & mut R , is_be: bool , srid: Option <i32 >) -> Result <Self , Error > {
429
420
let mut points: Vec <P > = vec![ ] ;
430
421
let size = read_u32( raw, is_be) ? as usize ;
@@ -443,9 +434,6 @@ macro_rules! impl_read_for_point_container_type {
443
434
fn point_type( ) -> PointType {
444
435
P :: point_type( )
445
436
}
446
- fn set_srid( & mut self , srid: Option <i32 >) {
447
- self . srid = srid;
448
- }
449
437
fn read_ewkb_body<R : Read >( raw: & mut R , is_be: bool , srid: Option <i32 >) -> Result <Self , Error > {
450
438
let mut points: Vec <P > = vec![ ] ;
451
439
let size = read_u32( raw, is_be) ? as usize ;
@@ -466,9 +454,6 @@ macro_rules! impl_read_for_geometry_container_type {
466
454
fn point_type( ) -> PointType {
467
455
P :: point_type( )
468
456
}
469
- fn set_srid( & mut self , srid: Option <i32 >) {
470
- self . srid = srid;
471
- }
472
457
fn read_ewkb_body<R : Read >( raw: & mut R , is_be: bool , srid: Option <i32 >) -> Result <Self , Error > {
473
458
let mut $itemname: Vec <$itemtype<P >> = vec![ ] ;
474
459
let size = read_u32( raw, is_be) ? as usize ;
@@ -486,9 +471,6 @@ macro_rules! impl_read_for_geometry_container_type {
486
471
fn point_type( ) -> PointType {
487
472
P :: point_type( )
488
473
}
489
- fn set_srid( & mut self , srid: Option <i32 >) {
490
- self . srid = srid;
491
- }
492
474
fn read_ewkb_body<R : Read >( raw: & mut R , is_be: bool , srid: Option <i32 >) -> Result <Self , Error > {
493
475
let mut $itemname: Vec <$itemtype<P >> = vec![ ] ;
494
476
let size = read_u32( raw, is_be) ? as usize ;
0 commit comments