From cb7f62246a5dbcea0866e4cc7569cc00ee7157bb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 18 Aug 2007 14:14:48 +0000 Subject: [PATCH] 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 --- core/MenuStyle_Base.cpp | 3 --- public/IMenuManager.h | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/MenuStyle_Base.cpp b/core/MenuStyle_Base.cpp index a7be3e2f..59d58126 100644 --- a/core/MenuStyle_Base.cpp +++ b/core/MenuStyle_Base.cpp @@ -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::iterator iter = m_items.iterAt(position); m_items.insert(iter, item); diff --git a/public/IMenuManager.h b/public/IMenuManager.h index 3be103cc..a973287d 100644 --- a/public/IMenuManager.h +++ b/public/IMenuManager.h @@ -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 */ }; /**