Remove unused method that causes compatibility problem in update AS plugin

This commit is contained in:
Nikolay Krasko
2016-05-17 17:47:08 +03:00
parent fd78424056
commit 89a10578f4
@@ -1047,30 +1047,6 @@ public class LintUtils {
return new AndroidVersion(api.getApiLevel(), null);
}
/**
* Returns true if the given Gradle model is older than the given version number
*/
public static boolean isModelOlderThan(@Nullable AndroidProject project,
int major, int minor, int micro) {
if (project != null) {
String modelVersion = project.getModelVersion();
try {
FullRevision version = FullRevision.parseRevision(modelVersion);
if (version.getMajor() != major) {
return version.getMajor() < major;
}
if (version.getMinor() != minor) {
return version.getMinor() < minor;
}
return version.getMicro() < micro;
} catch (NumberFormatException e) {
// ignore
}
}
return false;
}
/**
* Looks for a certain string within a larger string, which should immediately follow
* the given prefix and immediately precede the given suffix.