Revert "Revert "remove unneeded flag SK_SUPPORT_LEGACY_RECTMAKELARGEST""
No clients set this flag
This reverts commit c6471ebc67521a0d814b0548d419a4bd6d77222f.
Docs-Preview: https://skia.org/?cl=161151
Bug: skia:
Change-Id: I6100b9f26c588c68cde2172c021f6f3ebe71164f
Reviewed-on: https://skia-review.googlesource.com/c/161151
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/docs/SkIRect_Reference.bmh b/docs/SkIRect_Reference.bmh
index 43ec20b..043a456 100644
--- a/docs/SkIRect_Reference.bmh
+++ b/docs/SkIRect_Reference.bmh
@@ -1591,13 +1591,3 @@
##
#SeeAlso MakeEmpty
-
-##
-
-#Method static SkIRect MakeLargest()
-#Deprecated
-##
-
-#Struct SkIRect ##
-
-#Topic IRect ##
diff --git a/docs/SkRect_Reference.bmh b/docs/SkRect_Reference.bmh
index 136ef29..40bbe4e 100644
--- a/docs/SkRect_Reference.bmh
+++ b/docs/SkRect_Reference.bmh
@@ -2217,13 +2217,3 @@
##
#SeeAlso dump
-
-##
-
-#Method static SkRect MakeLargest()
-#Deprecated
-##
-
-#Struct SkRect ##
-
-#Topic Rect ##
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index ad52227..d311cce 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -51,14 +51,6 @@
return SkIRect{0, 0, 0, 0};
}
-#ifdef SK_SUPPORT_LEGACY_RECTMAKELARGEST
- /** Deprecated.
- */
- static SkIRect SK_WARN_UNUSED_RESULT MakeLargest() {
- return { SK_MinS32, SK_MinS32, SK_MaxS32, SK_MaxS32 };
- }
-#endif
-
/** Returns constructed SkIRect set to (0, 0, w, h). Does not validate input; w or h
may be negative.
@@ -702,14 +694,6 @@
return SkRect{0, 0, 0, 0};
}
-#ifdef SK_SUPPORT_LEGACY_RECTMAKELARGEST
- /** Deprecated.
- */
- static SkRect SK_WARN_UNUSED_RESULT MakeLargest() {
- return { SK_ScalarMin, SK_ScalarMin, SK_ScalarMax, SK_ScalarMax };
- }
-#endif
-
/** Returns constructed SkRect set to SkScalar values (0, 0, w, h). Does not
validate input; w or h may be negative.
diff --git a/site/user/api/SkIRect_Reference.md b/site/user/api/SkIRect_Reference.md
index d8b7665..84988e6 100644
--- a/site/user/api/SkIRect_Reference.md
+++ b/site/user/api/SkIRect_Reference.md
@@ -11,7 +11,6 @@
int32_t <a href='#SkIRect_fBottom'>fBottom</a>;
static constexpr <a href='#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeEmpty'>MakeEmpty</a>();
- static <a href='#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeLargest'>MakeLargest</a>();
static constexpr <a href='#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeWH'>MakeWH</a>(int32_t w, int32_t h);
static constexpr <a href='#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeSize'>MakeSize</a>(const <a href='undocumented#SkISize'>SkISize</a>& size);
static constexpr <a href='#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeLTRB'>MakeLTRB</a>(int32_t l, int32_t t,
@@ -2195,15 +2194,3 @@
<a href='#SkIRect_MakeEmpty'>MakeEmpty</a>
---
-
-<a name='SkIRect_MakeLargest'></a>
-## MakeLargest
-
-<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
-static <a href='#SkIRect'>SkIRect</a> <a href='#SkIRect_MakeLargest'>MakeLargest</a>()
-</pre>
-
-Deprecated.
-
----
-
diff --git a/site/user/api/SkRect_Reference.md b/site/user/api/SkRect_Reference.md
index 6b2c0d2..4de5bb4 100644
--- a/site/user/api/SkRect_Reference.md
+++ b/site/user/api/SkRect_Reference.md
@@ -11,7 +11,6 @@
<a href='undocumented#SkScalar'>SkScalar</a> <a href='#SkRect_fBottom'>fBottom</a>;
static constexpr <a href='#SkRect'>SkRect</a> <a href='#SkRect_MakeEmpty'>MakeEmpty</a>();
- static <a href='#SkRect'>SkRect</a> <a href='#SkRect_MakeLargest'>MakeLargest</a>();
static constexpr <a href='#SkRect'>SkRect</a> <a href='#SkRect_MakeWH'>MakeWH</a>(<a href='undocumented#SkScalar'>SkScalar</a> w, <a href='undocumented#SkScalar'>SkScalar</a> h);
static <a href='#SkRect'>SkRect</a> <a href='#SkRect_MakeIWH'>MakeIWH</a>(int w, int h);
static constexpr <a href='#SkRect'>SkRect</a> <a href='#SkRect_MakeSize'>MakeSize</a>(const <a href='undocumented#SkSize'>SkSize</a>& size);
@@ -2914,15 +2913,3 @@
<a href='#SkRect_dump'>dump</a><sup><a href='#SkRect_dump_2'>[2]</a></sup>
---
-
-<a name='SkRect_MakeLargest'></a>
-## MakeLargest
-
-<pre style="padding: 1em 1em 1em 1em; width: 62.5em;background-color: #f0f0f0">
-static <a href='#SkRect'>SkRect</a> <a href='#SkRect_MakeLargest'>MakeLargest</a>()
-</pre>
-
-Deprecated.
-
----
-