diff --git a/plugins/lint/lint-api/src/com/android/tools/klint/detector/api/LintUtils.java b/plugins/lint/lint-api/src/com/android/tools/klint/detector/api/LintUtils.java index 0820559d84e..1403204c4ab 100755 --- a/plugins/lint/lint-api/src/com/android/tools/klint/detector/api/LintUtils.java +++ b/plugins/lint/lint-api/src/com/android/tools/klint/detector/api/LintUtils.java @@ -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.