removed an API feature that was not only in the wrong place but was not implemented at all

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401353
This commit is contained in:
David Anderson 2007-08-18 14:14:48 +00:00
parent 874e3d6ed2
commit cb7f62246a
2 changed files with 1 additions and 5 deletions

View File

@ -617,8 +617,6 @@ bool CBaseMenu::AppendItem(const char *info, const ItemDrawInfo &draw)
item.displayString = m_Strings.AddString(draw.display);
}
item.style = draw.style;
item.access = draw.access;
m_items.push_back(item);
@ -645,7 +643,6 @@ bool CBaseMenu::InsertItem(unsigned int position, const char *info, const ItemDr
item.displayString = m_Strings.AddString(draw.display);
}
item.style = draw.style;
item.access = draw.access;
CVector<CItem>::iterator iter = m_items.iterAt(position);
m_items.insert(iter, item);

View File

@ -108,12 +108,11 @@ namespace SourceMod
{
ItemDrawInfo(const char *DISPLAY=NULL, unsigned int STYLE=ITEMDRAW_DEFAULT,
unsigned int FLAGS=0, const char *HELPTEXT=NULL)
: display(DISPLAY), style(STYLE), access(FLAGS)
: display(DISPLAY), style(STYLE)
{
}
const char *display; /**< Display text (NULL for none) */
unsigned int style; /**< ITEMDRAW style flags */
unsigned int access; /**< Access flags required to see */
};
/**