Bug 709523 - Part e: Remove some overloads of TypeInState::{SetProp,ClearProp}; r=ehsan a=edmorley

This commit is contained in:
Ms2ger 2011-12-11 21:03:46 +01:00
Родитель 92dbf5d385
Коммит b18d1021ca
2 изменённых файлов: 0 добавлений и 29 удалений

Просмотреть файл

@ -154,16 +154,6 @@ void TypeInState::Reset()
}
nsresult TypeInState::SetProp(nsIAtom *aProp)
{
return SetProp(aProp,EmptyString(),EmptyString());
}
nsresult TypeInState::SetProp(nsIAtom *aProp, const nsString &aAttr)
{
return SetProp(aProp,aAttr,EmptyString());
}
nsresult TypeInState::SetProp(nsIAtom *aProp, const nsString &aAttr, const nsString &aValue)
{
// special case for big/small, these nest
@ -210,11 +200,6 @@ nsresult TypeInState::ClearAllProps()
return ClearProp(nsnull,EmptyString());
}
nsresult TypeInState::ClearProp(nsIAtom *aProp)
{
return ClearProp(aProp,EmptyString());
}
nsresult TypeInState::ClearProp(nsIAtom *aProp, const nsString &aAttr)
{
// if it's already cleared we are done
@ -286,15 +271,6 @@ nsresult TypeInState::GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aPr
return GetTypingState(isSet, theSetting, aProp, EmptyString(), nsnull);
}
nsresult TypeInState::GetTypingState(bool &isSet,
bool &theSetting,
nsIAtom *aProp,
const nsString &aAttr)
{
return GetTypingState(isSet, theSetting, aProp, aAttr, nsnull);
}
nsresult TypeInState::GetTypingState(bool &isSet,
bool &theSetting,
nsIAtom *aProp,

Просмотреть файл

@ -74,12 +74,9 @@ public:
// nsISelectionListener
NS_DECL_NSISELECTIONLISTENER
nsresult SetProp(nsIAtom *aProp);
nsresult SetProp(nsIAtom *aProp, const nsString &aAttr);
nsresult SetProp(nsIAtom *aProp, const nsString &aAttr, const nsString &aValue);
nsresult ClearAllProps();
nsresult ClearProp(nsIAtom *aProp);
nsresult ClearProp(nsIAtom *aProp, const nsString &aAttr);
//**************************************************************************
@ -98,8 +95,6 @@ public:
nsresult TakeRelativeFontSize(PRInt32 *outRelSize);
nsresult GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aProp);
nsresult GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aProp,
const nsString &aAttr);
nsresult GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aProp,
const nsString &aAttr, nsString* outValue);