Skip to content

Commit

Permalink
Revert part of an earlier commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsj committed Jan 23, 2015
1 parent 09ee68e commit be30a7e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions extensions/uielement/internal.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@

static void new_uielement(lua_State* L, AXUIElementRef element) {
AXUIElementRef* elementptr = lua_newuserdata(L, sizeof(AXUIElementRef));
if (!elementptr) {
NSLog(@"elementptr is nil!");
return;
}
if (!element) {
NSLog(@"new_uielement called with nil element!");
return;
}
if (!elementptr) NSLog(@"elementptr is nil!");
if (!element) NSLog(@"new_uielement called with nil element!");
*elementptr = element;

luaL_getmetatable(L, userdataTag);
Expand Down

0 comments on commit be30a7e

Please sign in to comment.