Skip to content

Commit 43f701b

Browse files
Janette Jamesmaterial-automation
Janette James
authored andcommitted
Delete FilledTextAreasTheming
PiperOrigin-RevId: 715100357
1 parent ac53ebb commit 43f701b

File tree

6 files changed

+2
-588
lines changed

6 files changed

+2
-588
lines changed

components/TextControls/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ Text fields and text areas support Material Theming using a Container Scheme. Th
370370
In order to achieve something like the examples shown above, add one of the relevant theming subspecs to your `Podfile`:
371371
372372
```bash
373-
pod 'MaterialComponents/TextControls+FilledTextAreasTheming'
374373
pod 'MaterialComponents/TextControls+FilledTextFieldsTheming'
375374
pod 'MaterialComponents/TextControls+OutlinedTextAreasTheming'
376375
pod 'MaterialComponents/TextControls+OutlinedTextFieldsTheming'
@@ -390,7 +389,6 @@ Next, import the relevant target or file.
390389
#### Swift
391390

392391
```swift
393-
import MaterialComponents.MaterialTextControls_FilledTextAreasTheming
394392
import MaterialComponents.MaterialTextControls_FilledTextFieldsTheming
395393
import MaterialComponents.MaterialTextControls_OutlinedTextAreasTheming
396394
import MaterialComponents.MaterialTextControls_OutlinedTextFieldsTheming
@@ -399,7 +397,6 @@ import MaterialComponents.MaterialTextControls_OutlinedTextFieldsTheming
399397
#### Objective-C
400398

401399
```objc
402-
#import "MaterialTextControls+FilledTextAreasTheming.h"
403400
#import "MaterialTextControls+FilledTextFieldsTheming.h"
404401
#import "MaterialTextControls+OutlinedTextAreasTheming.h"
405402
#import "MaterialTextControls+OutlinedTextFieldsTheming.h"

components/TextControls/examples/supplemental/MDCTextControlTextAreaContentViewController.m

+2-10
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#import "MDCTextControlLabelBehavior.h"
2323
#import "MDCFilledTextArea.h"
24-
#import "MDCFilledTextArea+MaterialTheming.h"
2524
#import "MDCOutlinedTextArea.h"
2625
#import "MDCOutlinedTextArea+MaterialTheming.h"
2726

@@ -46,7 +45,6 @@ - (MDCFilledTextArea *)createMaterialFilledTextArea {
4645
if (self.shouldAddDebugLeadingView) {
4746
[self addLeadingViewToTextArea:textArea];
4847
}
49-
[textArea applyThemeWithScheme:self.containerScheme];
5048
return textArea;
5149
}
5250

@@ -199,10 +197,7 @@ - (void)applyThemesToTextAreas {
199197
enumerateObjectsUsingBlock:^(MDCBaseTextArea *textArea, NSUInteger idx, BOOL *stop) {
200198
BOOL isEven = idx % 2 == 0;
201199
if (self.isErrored) {
202-
if ([textArea isKindOfClass:[MDCFilledTextArea class]]) {
203-
MDCFilledTextArea *filledTextArea = (MDCFilledTextArea *)textArea;
204-
[filledTextArea applyErrorThemeWithScheme:self.containerScheme];
205-
} else if ([textArea isKindOfClass:[MDCOutlinedTextArea class]]) {
200+
if ([textArea isKindOfClass:[MDCOutlinedTextArea class]]) {
206201
MDCOutlinedTextArea *outlinedTextArea = (MDCOutlinedTextArea *)textArea;
207202
[outlinedTextArea applyErrorThemeWithScheme:self.containerScheme];
208203
}
@@ -214,10 +209,7 @@ - (void)applyThemesToTextAreas {
214209
textArea.leadingAssistiveLabel.text = @"This is an error.";
215210
}
216211
} else {
217-
if ([textArea isKindOfClass:[MDCFilledTextArea class]]) {
218-
MDCFilledTextArea *filledTextArea = (MDCFilledTextArea *)textArea;
219-
[filledTextArea applyThemeWithScheme:self.containerScheme];
220-
} else if ([textArea isKindOfClass:[MDCOutlinedTextArea class]]) {
212+
if ([textArea isKindOfClass:[MDCOutlinedTextArea class]]) {
221213
MDCOutlinedTextArea *outlinedTextArea = (MDCOutlinedTextArea *)textArea;
222214
[outlinedTextArea applyThemeWithScheme:self.containerScheme];
223215
}

components/TextControls/src/FilledTextAreasTheming/MDCFilledTextArea+MaterialTheming.h

-40
This file was deleted.

components/TextControls/src/FilledTextAreasTheming/MDCFilledTextArea+MaterialTheming.m

-181
This file was deleted.

components/TextControls/src/FilledTextAreasTheming/MaterialTextControls+FilledTextAreasTheming.h

-15
This file was deleted.

0 commit comments

Comments
 (0)