Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
set-query is gone but we left some cruft.
  • Loading branch information
gadomski committed Nov 9, 2023
1 parent 24e78e6 commit 550ff74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions stac/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ pub enum Error {
#[error(transparent)]
SerdeJson(#[from] serde_json::Error),

/// [serde_urlencoded::ser::Error]
#[cfg(feature = "set_query")]
#[error(transparent)]
SerdeUrlencodedSer(#[from] serde_urlencoded::ser::Error),

/// Returned when the `type` field of a STAC object does not equal `"Feature"`, `"Catalog"`, or `"Collection"`.
#[error("unknown \"type\": {0}")]
UnknownType(String),
Expand Down
10 changes: 0 additions & 10 deletions stac/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,16 +677,6 @@ mod tests {
assert!(value.get("title").is_none());
}

#[test]
#[cfg(feature = "set_query")]
fn set_query_pair() {
let mut link = Link::new("http://stac-rs.test/an-href", "a-rel");
link.set_query([("foo", "bar")]).unwrap();
assert_eq!(link.href, "http://stac-rs.test/an-href?foo=bar");
link.set_query([("baz", "boz")]).unwrap();
assert_eq!(link.href, "http://stac-rs.test/an-href?baz=boz");
}

mod links {
use crate::{Catalog, Item, Link, Links};

Expand Down

0 comments on commit 550ff74

Please sign in to comment.