commit d70d582cc8876046f5e4ea702a170a32038c57c1
parent 61d6a4d7be9b67bacc0f4964a921e03ec3aabde3
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 30 Mar 2023 13:09:57 -0700
dead code
Diffstat:
1 file changed, 0 insertions(+), 12 deletions(-)
diff --git a/src/lechatphp/mod.rs b/src/lechatphp/mod.rs
@@ -176,12 +176,6 @@ impl Letter {
#[derive(Debug)]
struct CaptchaErr(String);
-impl From<&str> for CaptchaErr {
- fn from(value: &str) -> Self {
- CaptchaErr(value.to_owned())
- }
-}
-
impl Display for CaptchaErr {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
@@ -390,12 +384,6 @@ impl Point {
}
}
-impl From<(u32, u32)> for Point {
- fn from(value: (u32, u32)) -> Self {
- Self{x: value.0, y: value.1}
- }
-}
-
fn get_contour_red_pixels(top_left_pt: &Point, img: &DynamicImage) -> Vec<Point> {
let (img_width, img_height) = img.dimensions();
let mut out = vec![];