Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 1b21b07

Browse files
committed
Bug 1330225. Remove unused function nsViewManager::InsertChild. r=mats
1 parent f4bc291 commit 1b21b07

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

view/nsViewManager.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -936,15 +936,6 @@ nsViewManager::InsertChild(nsView *aParent, nsView *aChild, nsView *aSibling,
936936
}
937937
}
938938

939-
void
940-
nsViewManager::InsertChild(nsView *aParent, nsView *aChild, int32_t aZIndex)
941-
{
942-
// no-one really calls this with anything other than aZIndex == 0 on a fresh view
943-
// XXX this method should simply be eliminated and its callers redirected to the real method
944-
SetViewZIndex(aChild, false, aZIndex);
945-
InsertChild(aParent, aChild, nullptr, true);
946-
}
947-
948939
void
949940
nsViewManager::RemoveChild(nsView *aChild)
950941
{

view/nsViewManager.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ class nsViewManager final
148148
void InsertChild(nsView *aParent, nsView *aChild, nsView *aSibling,
149149
bool aAfter);
150150

151-
void InsertChild(nsView *aParent, nsView *aChild, int32_t aZIndex);
152-
153151
/**
154152
* Remove a specific child view from its parent. This will NOT remove its placeholder
155153
* if there is one.

0 commit comments

Comments
 (0)