Skip to content

Commit 7cbbf22

Browse files
authored
chore(predictions): Remove unused imports and variables (#1396)
1 parent e7d9c04 commit 7cbbf22

File tree

11 files changed

+49
-61
lines changed

11 files changed

+49
-61
lines changed

AmplifyPlugins/Predictions/AWSPredictionsPlugin/AWSPredictionsPlugin+ClientBehavior.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ extension AWSPredictionsPlugin {
3838

3939
let convertOperation = AWSPollyOperation(request,
4040
predictionsService: predictionsService,
41-
authService: authService,
4241
resultListener: listener)
4342

4443
queue.addOperation(convertOperation)

AmplifyPlugins/Predictions/AWSPredictionsPlugin/AWSPredictionsPlugin+Reset.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import Amplify
10-
import AWSPluginsCore
1110

1211
extension AWSPredictionsPlugin {
1312

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Operation/AWSPollyOperation.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import Amplify
10-
import AWSPluginsCore
1110
import AWSPolly
1211

1312
public class AWSPollyOperation: AmplifyOperation<
@@ -17,14 +16,11 @@ public class AWSPollyOperation: AmplifyOperation<
1716
>, PredictionsTextToSpeechOperation {
1817

1918
let predictionsService: AWSPredictionsService
20-
let authService: AWSAuthServiceBehavior
2119

2220
init(_ request: PredictionsTextToSpeechRequest,
2321
predictionsService: AWSPredictionsService,
24-
authService: AWSAuthServiceBehavior,
2522
resultListener: ResultListener?) {
2623
self.predictionsService = predictionsService
27-
self.authService = authService
2824
super.init(categoryType: .predictions,
2925
eventName: HubPayload.EventName.Predictions.textToSpeech,
3026
request: request,

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Operation/AWSTranscribeOperation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import Amplify
10-
import AWSPluginsCore
1110

1211
public class AWSTranscribeOperation: AmplifyOperation<
1312
PredictionsSpeechToTextRequest,

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Operation/AWSTranslateOperation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import Amplify
10-
import AWSPluginsCore
1110

1211
public class AWSTranslateOperation: AmplifyOperation<
1312
PredictionsTranslateTextRequest,

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Operation/IdentifyOperation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import Amplify
10-
import AWSPluginsCore
1110

1211
public class IdentifyOperation: AmplifyOperation<
1312
PredictionsIdentifyRequest,

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Operation/InterpretTextOperation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import Amplify
10-
import AWSPluginsCore
1110

1211
public class InterpretTextOperation: AmplifyOperation<
1312
PredictionsInterpretRequest,

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Service/Predictions/AWSPredictionsService+Transcribe.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Amplify
99
import AWSTranscribeStreaming
10-
import AWSPluginsCore
1110

1211
extension AWSPredictionsService: AWSTranscribeStreamingServiceBehavior {
1312

AmplifyPlugins/Predictions/Podfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@ end
1818

1919
target 'CoreMLPredictionsPlugin' do
2020
pod 'Amplify', :path => '../../'
21-
pod 'AWSPluginsCore', :path => '../../'
2221
end
2322

2423
target "HostApp" do
2524
use_frameworks!
2625
include_test_utilities!
2726
pod 'Amplify', :path => '../../'
28-
pod 'AmplifyTestCommon', :path => '../../'
2927

3028
target "AWSPredictionsPluginIntegrationTests" do
3129
inherit! :complete

AmplifyPlugins/Predictions/Podfile.lock

Lines changed: 36 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,33 @@ PODS:
99
- AWSCore (~> 2.26.0)
1010
- AWSMobileClient (~> 2.26.0)
1111
- AWSPluginsCore (= 1.14.0)
12-
- AmplifyTestCommon (1.14.0):
13-
- Amplify (= 1.14.0)
14-
- AmplifyTestCommon/AWSPluginsTestCommon (= 1.14.0)
15-
- AmplifyTestCommon/AWSPluginsTestCommon (1.14.0):
16-
- Amplify (= 1.14.0)
17-
- AWSCore (~> 2.26.0)
18-
- AWSMobileClient (~> 2.26.0)
19-
- AWSPluginsCore (= 1.14.0)
20-
- AWSAuthCore (2.26.0):
21-
- AWSCore (= 2.26.0)
22-
- AWSCognitoIdentityProvider (2.26.0):
23-
- AWSCognitoIdentityProviderASF (= 2.26.0)
24-
- AWSCore (= 2.26.0)
25-
- AWSCognitoIdentityProviderASF (2.26.0)
26-
- AWSComprehend (2.26.0):
27-
- AWSCore (= 2.26.0)
28-
- AWSCore (2.26.0)
29-
- AWSMobileClient (2.26.0):
30-
- AWSAuthCore (= 2.26.0)
31-
- AWSCognitoIdentityProvider (= 2.26.0)
32-
- AWSCognitoIdentityProviderASF (= 2.26.0)
33-
- AWSCore (= 2.26.0)
12+
- AWSAuthCore (2.26.1):
13+
- AWSCore (= 2.26.1)
14+
- AWSCognitoIdentityProvider (2.26.1):
15+
- AWSCognitoIdentityProviderASF (= 2.26.1)
16+
- AWSCore (= 2.26.1)
17+
- AWSCognitoIdentityProviderASF (2.26.1)
18+
- AWSComprehend (2.26.1):
19+
- AWSCore (= 2.26.1)
20+
- AWSCore (2.26.1)
21+
- AWSMobileClient (2.26.1):
22+
- AWSAuthCore (= 2.26.1)
23+
- AWSCognitoIdentityProvider (= 2.26.1)
24+
- AWSCognitoIdentityProviderASF (= 2.26.1)
25+
- AWSCore (= 2.26.1)
3426
- AWSPluginsCore (1.14.0):
3527
- Amplify (= 1.14.0)
3628
- AWSCore (~> 2.26.0)
37-
- AWSPolly (2.26.0):
38-
- AWSCore (= 2.26.0)
39-
- AWSRekognition (2.26.0):
40-
- AWSCore (= 2.26.0)
41-
- AWSTextract (2.26.0):
42-
- AWSCore (= 2.26.0)
43-
- AWSTranscribeStreaming (2.26.0):
44-
- AWSCore (= 2.26.0)
45-
- AWSTranslate (2.26.0):
46-
- AWSCore (= 2.26.0)
29+
- AWSPolly (2.26.1):
30+
- AWSCore (= 2.26.1)
31+
- AWSRekognition (2.26.1):
32+
- AWSCore (= 2.26.1)
33+
- AWSTextract (2.26.1):
34+
- AWSCore (= 2.26.1)
35+
- AWSTranscribeStreaming (2.26.1):
36+
- AWSCore (= 2.26.1)
37+
- AWSTranslate (2.26.1):
38+
- AWSCore (= 2.26.1)
4739
- CwlCatchException (1.0.2)
4840
- CwlPreconditionTesting (1.1.1):
4941
- CwlCatchException
@@ -53,7 +45,6 @@ PODS:
5345
DEPENDENCIES:
5446
- Amplify (from `../../`)
5547
- AmplifyPlugins/AWSCognitoAuthPlugin (from `../../`)
56-
- AmplifyTestCommon (from `../../`)
5748
- AWSComprehend (~> 2.26.0)
5849
- AWSPluginsCore (from `../../`)
5950
- AWSPolly (~> 2.26.0)
@@ -87,8 +78,6 @@ EXTERNAL SOURCES:
8778
:path: "../../"
8879
AmplifyPlugins:
8980
:path: "../../"
90-
AmplifyTestCommon:
91-
:path: "../../"
9281
AWSPluginsCore:
9382
:path: "../../"
9483
CwlCatchException:
@@ -109,24 +98,23 @@ CHECKOUT OPTIONS:
10998
SPEC CHECKSUMS:
11099
Amplify: 6402de6b8e46f3228b59fef3dfe379ebbfb0e0f1
111100
AmplifyPlugins: 94bb3e7e006b41f82e8a0a1dbbc48925d9edbe4c
112-
AmplifyTestCommon: cf9d5a7a3bb697f8cd5fe4d8fae0f968033abdd0
113-
AWSAuthCore: e33e7d1c2a7e6c08a026865f9396b0ef870faac3
114-
AWSCognitoIdentityProvider: 4119e1492b23fc408a18c6dafe06888ef03c96e3
115-
AWSCognitoIdentityProviderASF: a7f1e8cbafbac53ea1150ca50eac870d5c04dacf
116-
AWSComprehend: c2c9bda789c15f657d8277cf36bfda8522f40053
117-
AWSCore: b6d8dda67f24c6fc4c354334ec6d34238f37b735
118-
AWSMobileClient: a9a498884df72531e3e73c9d7bb087f72364204d
101+
AWSAuthCore: 264faaa6af5990af2c77effe8f398a4b80e6c44e
102+
AWSCognitoIdentityProvider: 5df455775b57eb4e61862acd88d93e56113950c4
103+
AWSCognitoIdentityProviderASF: b2c180f69537d57ff485f7314fd266032ca3f898
104+
AWSComprehend: bc1f0c311614ae4797201f673ff5a42574b04ed6
105+
AWSCore: 0f855e20ccb13e028932b737f0706023a9561399
106+
AWSMobileClient: ba255030a481b8a123b21585548e761456efc64b
119107
AWSPluginsCore: 75950cfd39535b0a3654096cb472a7ee5b2ce0fa
120-
AWSPolly: 2ea5885081dfe62fcab8e473b4ca07e0130ea661
121-
AWSRekognition: 44d06de9aa5d5cfcf4d1b019bc20083f29d1b7c4
122-
AWSTextract: 1f7f21203b215b0c2dce98a0f42b71c95ed3ad3e
123-
AWSTranscribeStreaming: 6f8403906f6f155a659c80ed3fb0a91f4f37548b
124-
AWSTranslate: 82f72f87fb15e7cbee4578fdbfb04ade073156f0
108+
AWSPolly: a0a0901b2988927c67812731329bd4f6b4f5be1f
109+
AWSRekognition: 663768f4d03f543235d8cdaa9c143a60fb0ffc9e
110+
AWSTextract: 7357b4a62ed66636d8aa5252148614ecab351b16
111+
AWSTranscribeStreaming: 6fd3600f480b841928ba0750b6d686c82117f7eb
112+
AWSTranslate: 1209331a7526821bc200dc51e4cbdc83cf41feff
125113
CwlCatchException: 70a52ae44ea5d46db7bd385f801a94942420cd8c
126114
CwlPreconditionTesting: d33a4e4f285c0b885fddcae5dfedfbb34d4f3961
127115
SwiftFormat: 3b5caa6389b2b9adbc00e133b3ccc8c6e687a6a4
128116
SwiftLint: e96c0a8c770c7ebbc4d36c55baf9096bb65c4584
129117

130-
PODFILE CHECKSUM: 65cca76c6059f8ccc8628936971fb9e4b035fb10
118+
PODFILE CHECKSUM: 359e5e54f0b35ed310c3d521aa35d3d628630460
131119

132120
COCOAPODS: 1.10.1

0 commit comments

Comments
 (0)