1.1 --- a/core/smn_keyvalues.cpp Mon Mar 17 00:07:58 2008 +0000
1.2 +++ b/core/smn_keyvalues.cpp Mon Mar 17 00:11:01 2008 +0000
1.3 @@ -627,33 +627,6 @@
1.4 return 1;
1.5 }
1.6
1.7 -static cell_t smn_KvJumpNextSubKey(IPluginContext *pCtx, const cell_t *params)
1.8 -{
1.9 - Handle_t hndl = static_cast<Handle_t>(params[1]);
1.10 - HandleError herr;
1.11 - HandleSecurity sec;
1.12 - KeyValueStack *pStk;
1.13 -
1.14 - sec.pOwner = NULL;
1.15 - sec.pIdentity = g_pCoreIdent;
1.16 -
1.17 - if ((herr=g_HandleSys.ReadHandle(hndl, g_KeyValueType, &sec, (void **)&pStk))
1.18 - != HandleError_None)
1.19 - {
1.20 - return pCtx->ThrowNativeError("Invalid key value handle %x (error %d)", hndl, herr);
1.21 - }
1.22 -
1.23 - KeyValues *pSubKey = pStk->pCurRoot.front();
1.24 - KeyValues *pNextKey = pSubKey->GetNextKey();
1.25 - if (!pNextKey)
1.26 - {
1.27 - return 0;
1.28 - }
1.29 - pStk->pCurRoot.push(pNextKey);
1.30 -
1.31 - return 1;
1.32 -}
1.33 -
1.34 static cell_t smn_KvGoBack(IPluginContext *pCtx, const cell_t *params)
1.35 {
1.36 Handle_t hndl = static_cast<Handle_t>(params[1]);