aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/SkPaintPriv.cpp11
-rw-r--r--src/core/SkPaintPriv.h7
2 files changed, 0 insertions, 18 deletions
diff --git a/src/core/SkPaintPriv.cpp b/src/core/SkPaintPriv.cpp
index d7b3032227..ce05389019 100644
--- a/src/core/SkPaintPriv.cpp
+++ b/src/core/SkPaintPriv.cpp
@@ -76,14 +76,3 @@ bool isPaintOpaque(const SkPaint* paint,
}
return false;
}
-
-bool NeedsDeepCopy(const SkPaint& paint) {
- /*
- * The types below are not yet immutable/reentrant-safe, and so we return
- * true if instances of them are present in the paint.
- *
- * Eventually we hope this list will be empty, and we can always return
- * false.
- */
- return paint.getImageFilter();
-}
diff --git a/src/core/SkPaintPriv.h b/src/core/SkPaintPriv.h
index 9668fef127..38c9063e56 100644
--- a/src/core/SkPaintPriv.h
+++ b/src/core/SkPaintPriv.h
@@ -22,11 +22,4 @@ class SkPaint;
*/
bool isPaintOpaque(const SkPaint* paint,
const SkBitmap* bmpReplacesShader = NULL);
-
-/** Returns true if the provided paint has fields which are not
- immutable (and will thus require deep copying).
- @param paint the paint to be analyzed
- @return true if the paint requires a deep copy
-*/
-bool NeedsDeepCopy(const SkPaint& paint);
#endif