Skip to content

Commit

Permalink
remove unsafe test function getgoalbykey
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Apr 30, 2017
1 parent 09c2773 commit 72959b8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3738,19 +3738,6 @@ class LunaProfile : public Luna<Profile>
p->ValidateAllScores();
return 1;
}

static int GetGoalByKey(T* p, lua_State *L) {
RString ck = SArg(1);
auto it = p->goalmap.find(ck);
if (it == p->goalmap.end()) {
lua_pushnil(L);
}
else {
p->goalmap[SArg(1)].front().PushSelf(L);
}

return 1;
}

static int GetAllGoals(T* p, lua_State *L) {
lua_newtable(L);
Expand Down Expand Up @@ -3856,7 +3843,6 @@ class LunaProfile : public Luna<Profile>
ADD_METHOD( GetPBHighScoreByKey );
ADD_METHOD( GetPBWifeScoreByKey );
ADD_METHOD( ValidateAllScores );
ADD_METHOD( GetGoalByKey );
ADD_METHOD( GetAllGoals );
}
};
Expand Down

0 comments on commit 72959b8

Please sign in to comment.