Revert "Fix erroneous "Field requires API level 33 (current min is 32)" warnings"

This reverts commit 8b7f627f30.

Reason for revert: b/230821289

Change-Id: I3032103b174c78586b38b64d2748ec5a42fa9522
This commit is contained in:
Nataniel Borges
2022-04-29 09:49:16 +00:00
parent 8b7f627f30
commit 5d80d895b6
3 changed files with 10 additions and 38 deletions

View File

@@ -54,14 +54,6 @@ type ApiLevel struct {
isPreview bool
}
func (this ApiLevel) FinalInt() int {
if this.IsPreview() {
panic("Requested a final int from a non-final ApiLevel")
} else {
return this.number
}
}
func (this ApiLevel) FinalOrFutureInt() int {
if this.IsPreview() {
return FutureApiLevelInt