From 4c5d30d2dbfa1969628116f57a2366b34a7bdd14 Mon Sep 17 00:00:00 2001 From: Aitor Viana Date: Mon, 27 Jan 2025 18:17:39 +0000 Subject: [PATCH] remove BackupAgentScope that is unused --- .../ContributesSubComponentCodeGenerator.kt | 2 -- .../duckduckgo/di/scopes/BackupAgentScope.kt | 19 ------------------- 2 files changed, 21 deletions(-) delete mode 100644 di/src/main/java/com/duckduckgo/di/scopes/BackupAgentScope.kt diff --git a/anvil/anvil-compiler/src/main/java/com/duckduckgo/anvil/compiler/ContributesSubComponentCodeGenerator.kt b/anvil/anvil-compiler/src/main/java/com/duckduckgo/anvil/compiler/ContributesSubComponentCodeGenerator.kt index c918c1ba6eb6..a24bc91eafd8 100644 --- a/anvil/anvil-compiler/src/main/java/com/duckduckgo/anvil/compiler/ContributesSubComponentCodeGenerator.kt +++ b/anvil/anvil-compiler/src/main/java/com/duckduckgo/anvil/compiler/ContributesSubComponentCodeGenerator.kt @@ -249,7 +249,6 @@ class ContributesSubComponentCodeGenerator : CodeGenerator { serviceScopeFqName.asClassName(module) -> appScopeFqName fragmentScopeFqName.asClassName(module) -> activityScopeFqName viewScopeFqName.asClassName(module) -> activityScopeFqName - backupAgentScopeFqName.asClassName(module) -> appScopeFqName else -> throw AnvilCompilationException("${this.asClassName(module)} scope is not currently supported") } } @@ -286,6 +285,5 @@ class ContributesSubComponentCodeGenerator : CodeGenerator { private val vpnScopeFqName = FqName("com.duckduckgo.di.scopes.VpnScope") private val serviceScopeFqName = FqName("com.duckduckgo.di.scopes.ServiceScope") private val viewScopeFqName = FqName("com.duckduckgo.di.scopes.ViewScope") - private val backupAgentScopeFqName = FqName("com.duckduckgo.di.scopes.BackupAgentScope") } } diff --git a/di/src/main/java/com/duckduckgo/di/scopes/BackupAgentScope.kt b/di/src/main/java/com/duckduckgo/di/scopes/BackupAgentScope.kt deleted file mode 100644 index 770307228f6b..000000000000 --- a/di/src/main/java/com/duckduckgo/di/scopes/BackupAgentScope.kt +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2023 DuckDuckGo - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.duckduckgo.di.scopes - -abstract class BackupAgentScope private constructor()