From 54ea4d8301961d9c1cf2686b988dc4a227380e5a Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 28 Mar 2018 16:51:31 +1100 Subject: [PATCH] Bug 1449414 - Remove nsCSSAnonBoxes::GetNonInheritingPseudoAtom. r=xidorn It's unused. MozReview-Commit-ID: 2GymDMCE92a --HG-- extra : rebase_source : 008840538c1047989532121d36d618a152e57f97 --- layout/style/nsCSSAnonBoxes.cpp | 7 ------- layout/style/nsCSSAnonBoxes.h | 4 ---- 2 files changed, 11 deletions(-) diff --git a/layout/style/nsCSSAnonBoxes.cpp b/layout/style/nsCSSAnonBoxes.cpp index 1d61a5bf88a8..0038b7414512 100644 --- a/layout/style/nsCSSAnonBoxes.cpp +++ b/layout/style/nsCSSAnonBoxes.cpp @@ -77,10 +77,3 @@ nsCSSAnonBoxes::NonInheritingTypeForPseudoTag(nsAtom* aPseudo) MOZ_RELEASE_ASSERT(index.isSome()); return static_cast(*index); } - -/* static */ nsAtom* -nsCSSAnonBoxes::GetNonInheritingPseudoAtom(NonInheriting aBoxType) -{ - MOZ_ASSERT(aBoxType < NonInheriting::_Count); - return *sCSSAnonBoxAtomSetup[static_cast(aBoxType)].mAtomp; -} diff --git a/layout/style/nsCSSAnonBoxes.h b/layout/style/nsCSSAnonBoxes.h index 250ad96b1f3d..bc893f9349ef 100644 --- a/layout/style/nsCSSAnonBoxes.h +++ b/layout/style/nsCSSAnonBoxes.h @@ -118,10 +118,6 @@ public: // Get the NonInheriting type for a given pseudo tag. The pseudo tag must // test true for IsNonInheritingAnonBox. static NonInheriting NonInheritingTypeForPseudoTag(nsAtom* aPseudo); - - // Get the atom for a given non-inheriting anon box type. aBoxType must be < - // NonInheriting::_Count. - static nsAtom* GetNonInheritingPseudoAtom(NonInheriting aBoxType); }; #endif /* nsCSSAnonBoxes_h___ */