Skip to content

Commit 5019d59

Browse files
Remove dead code
1 parent c2d5743 commit 5019d59

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/ilias.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -501,15 +501,10 @@ impl Object {
501501
pub struct URL {
502502
pub url: String,
503503
baseClass: String,
504-
cmdClass: Option<String>,
505-
cmdNode: Option<String>,
506504
pub cmd: Option<String>,
507-
forwardCmd: Option<String>,
508505
pub thr_pk: Option<String>,
509-
pos_pk: Option<String>,
510506
pub ref_id: String,
511507
target: Option<String>,
512-
file: Option<String>,
513508
}
514509

515510
#[allow(non_snake_case)]
@@ -518,15 +513,10 @@ impl URL {
518513
URL {
519514
url,
520515
baseClass: String::new(),
521-
cmdClass: None,
522-
cmdNode: None,
523516
cmd: None,
524-
forwardCmd: None,
525517
thr_pk: None,
526-
pos_pk: None,
527518
ref_id: String::new(),
528519
target: None,
529-
file: None,
530520
}
531521
}
532522

@@ -537,42 +527,27 @@ impl URL {
537527
Url::parse(href)?
538528
};
539529
let mut baseClass = String::new();
540-
let mut cmdClass = None;
541-
let mut cmdNode = None;
542530
let mut cmd = None;
543-
let mut forwardCmd = None;
544531
let mut thr_pk = None;
545-
let mut pos_pk = None;
546532
let mut ref_id = String::new();
547533
let mut target = None;
548-
let mut file = None;
549534
for (k, v) in url.query_pairs() {
550535
match &*k {
551536
"baseClass" => baseClass = v.into_owned(),
552-
"cmdClass" => cmdClass = Some(v.into_owned()),
553-
"cmdNode" => cmdNode = Some(v.into_owned()),
554537
"cmd" => cmd = Some(v.into_owned()),
555-
"forwardCmd" => forwardCmd = Some(v.into_owned()),
556538
"thr_pk" => thr_pk = Some(v.into_owned()),
557-
"pos_pk" => pos_pk = Some(v.into_owned()),
558539
"ref_id" => ref_id = v.into_owned(),
559540
"target" => target = Some(v.into_owned()),
560-
"file" => file = Some(v.into_owned()),
561541
_ => {},
562542
}
563543
}
564544
Ok(URL {
565545
url: url.into(),
566546
baseClass,
567-
cmdClass,
568-
cmdNode,
569547
cmd,
570-
forwardCmd,
571548
thr_pk,
572-
pos_pk,
573549
ref_id,
574550
target,
575-
file,
576551
})
577552
}
578553
}

0 commit comments

Comments
 (0)