Bug 1330225. Remove unused function nsViewManager::InsertChild. r=mats

This commit is contained in:
Timothy Nikkel 2017-01-12 00:59:11 -06:00
Родитель f4bc291aed
Коммит 1b21b07765
2 изменённых файлов: 0 добавлений и 11 удалений

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

@ -936,15 +936,6 @@ nsViewManager::InsertChild(nsView *aParent, nsView *aChild, nsView *aSibling,
}
}
void
nsViewManager::InsertChild(nsView *aParent, nsView *aChild, int32_t aZIndex)
{
// no-one really calls this with anything other than aZIndex == 0 on a fresh view
// XXX this method should simply be eliminated and its callers redirected to the real method
SetViewZIndex(aChild, false, aZIndex);
InsertChild(aParent, aChild, nullptr, true);
}
void
nsViewManager::RemoveChild(nsView *aChild)
{

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

@ -148,8 +148,6 @@ public:
void InsertChild(nsView *aParent, nsView *aChild, nsView *aSibling,
bool aAfter);
void InsertChild(nsView *aParent, nsView *aChild, int32_t aZIndex);
/**
* Remove a specific child view from its parent. This will NOT remove its placeholder
* if there is one.