diff --git a/core/smn_keyvalues.cpp b/core/smn_keyvalues.cpp index 183802c1..45cfb93e 100644 --- a/core/smn_keyvalues.cpp +++ b/core/smn_keyvalues.cpp @@ -627,33 +627,6 @@ static cell_t smn_KvGotoNextKey(IPluginContext *pCtx, const cell_t *params) return 1; } -static cell_t smn_KvJumpNextSubKey(IPluginContext *pCtx, const cell_t *params) -{ - Handle_t hndl = static_cast(params[1]); - HandleError herr; - HandleSecurity sec; - KeyValueStack *pStk; - - sec.pOwner = NULL; - sec.pIdentity = g_pCoreIdent; - - if ((herr=g_HandleSys.ReadHandle(hndl, g_KeyValueType, &sec, (void **)&pStk)) - != HandleError_None) - { - return pCtx->ThrowNativeError("Invalid key value handle %x (error %d)", hndl, herr); - } - - KeyValues *pSubKey = pStk->pCurRoot.front(); - KeyValues *pNextKey = pSubKey->GetNextKey(); - if (!pNextKey) - { - return 0; - } - pStk->pCurRoot.push(pNextKey); - - return 1; -} - static cell_t smn_KvGoBack(IPluginContext *pCtx, const cell_t *params) { Handle_t hndl = static_cast(params[1]);