Skip to content

Commit

Permalink
feat: Remove obsolete Amazon Smile sanitizer (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs authored Mar 9, 2023
1 parent d092950 commit e77360a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 96 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Léon - The URL Cleaner
* Copyright (C) 2022 Sven Jacobs
* Copyright (C) 2023 Sven Jacobs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -23,7 +23,6 @@ import com.svenjacobs.app.leon.core.domain.inject.AppContainer
import com.svenjacobs.app.leon.core.domain.sanitizer.aliexpress.AliexpressSanitizer
import com.svenjacobs.app.leon.core.domain.sanitizer.amazon.AmazonProductSanitizer
import com.svenjacobs.app.leon.core.domain.sanitizer.amazon.AmazonSanitizer
import com.svenjacobs.app.leon.core.domain.sanitizer.amazon.AmazonSmileSanitizer
import com.svenjacobs.app.leon.core.domain.sanitizer.aol.AolSearchSanitizer
import com.svenjacobs.app.leon.core.domain.sanitizer.change.ChangeSanitizer
import com.svenjacobs.app.leon.core.domain.sanitizer.ebay.EbaySanitizer
Expand Down Expand Up @@ -60,7 +59,6 @@ class ContainerInitializer : DistinctInitializer<Unit> {
AliexpressSanitizer(),
AmazonProductSanitizer(),
AmazonSanitizer(),
AmazonSmileSanitizer(),
AolSearchSanitizer(),
ChangeSanitizer(),
EbaySanitizer(),
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions core-domain/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Léon - The URL Cleaner
~ Copyright (C) 2022 Sven Jacobs
~ Copyright (C) 2023 Sven Jacobs
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
Expand All @@ -20,7 +20,6 @@
<string name="sanitizer_aliexpress_name" translatable="false">AliExpress</string>
<string name="sanitizer_amazon_name" translatable="false">Amazon</string>
<string name="sanitizer_amazon_product_name">Amazon Products</string>
<string name="sanitizer_amazon_smile_name" translatable="false">Amazon Smile</string>
<string name="sanitizer_aol_search_name">AOL Search</string>
<string name="sanitizer_change_name" translatable="false">Change</string>
<string name="sanitizer_ebay_name" translatable="false">eBay</string>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Léon - The URL Cleaner
* Copyright (C) 2022 Sven Jacobs
* Copyright (C) 2023 Sven Jacobs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -26,7 +26,7 @@ class NewEggSanitizerTest : WordSpec(

"invoke" should {

"replace Amazon with Amazon Smile domain" {
"remove obsolete parameters" {
val sanitizer = NewEggSanitizer()
val result = sanitizer(
"https://www.newegg.com/black-acer-nitro-5-an515-57-59f7-gaming/p/N82E1" +
Expand Down

0 comments on commit e77360a

Please sign in to comment.