BMenuField: remove deprecated constructors
These were introduced by mistake during the addition of the layout system. They have been private since 2011. It seems safe to assume that nothing uses them anymore and they can now be removed safely. Change-Id: I98d030096f9cb06fccc25233fe4da17d0213050e Reviewed-on: https://review.haiku-os.org/c/haiku/+/6075 Tested-by: Automation <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
3cc1da2b77
commit
fc2f1a3247
@@ -113,13 +113,6 @@ private:
|
||||
friend class MenuBarLayoutItem;
|
||||
friend struct LayoutData;
|
||||
|
||||
BMenuField(const char* name,
|
||||
const char* label, BMenu* menu,
|
||||
BMessage* message,
|
||||
uint32 flags);
|
||||
BMenuField(const char* label,
|
||||
BMenu* menu, BMessage* message);
|
||||
|
||||
void _DrawLabel(BRect updateRect);
|
||||
void _DrawMenuBar(BRect updateRect);
|
||||
|
||||
|
||||
@@ -259,33 +259,6 @@ BMenuField::BMenuField(const char* label, BMenu* menu, uint32 flags)
|
||||
}
|
||||
|
||||
|
||||
//! Copy&Paste error, should be removed at some point (already private)
|
||||
BMenuField::BMenuField(const char* name, const char* label, BMenu* menu,
|
||||
BMessage* message, uint32 flags)
|
||||
:
|
||||
BView(name, flags | B_FRAME_EVENTS)
|
||||
{
|
||||
InitObject(label);
|
||||
|
||||
_InitMenuBar(menu, BRect(0, 0, 100, 15), true);
|
||||
|
||||
InitObject2();
|
||||
}
|
||||
|
||||
|
||||
//! Copy&Paste error, should be removed at some point (already private)
|
||||
BMenuField::BMenuField(const char* label, BMenu* menu, BMessage* message)
|
||||
:
|
||||
BView(NULL, B_WILL_DRAW | B_NAVIGABLE | B_FRAME_EVENTS)
|
||||
{
|
||||
InitObject(label);
|
||||
|
||||
_InitMenuBar(menu, BRect(0, 0, 100, 15), true);
|
||||
|
||||
InitObject2();
|
||||
}
|
||||
|
||||
|
||||
BMenuField::BMenuField(BMessage* data)
|
||||
:
|
||||
BView(BUnarchiver::PrepareArchive(data))
|
||||
|
||||
Reference in New Issue
Block a user