Remove SkTypeface::style().
Change-Id: Ide445c73a5b14ea2e52decf85f5a2a9af0f2d242
Reviewed-on: https://skia-review.googlesource.com/34940
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index 7f2b919..0b65ba9 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -58,15 +58,6 @@
return fStyle;
}
- /** Returns the typeface's intrinsic style attributes.
- * @deprecated use fontStyle() instead.
- */
- Style style() const {
- return static_cast<Style>(
- (fStyle.weight() >= SkFontStyle::kSemiBold_Weight ? kBold : kNormal) |
- (fStyle.slant() != SkFontStyle::kUpright_Slant ? kItalic : kNormal));
- }
-
/** Returns true if style() has the kBold bit set. */
bool isBold() const { return fStyle.weight() >= SkFontStyle::kSemiBold_Weight; }