From 0fe0b7d755599cc1caceefdefe6a8aa7288263e6 Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Thu, 6 Apr 2017 17:47:05 -0700 Subject: [PATCH] Revert new feature additions This reverts commit 61ce6cd8ea8c2b4cba12a07b677dfa92873789e6. # Conflicts: # binding-mri/oneshot-binding.cpp --- binding-mri/oneshot-binding.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/binding-mri/oneshot-binding.cpp b/binding-mri/oneshot-binding.cpp index 11154da..9e0bfbf 100644 --- a/binding-mri/oneshot-binding.cpp +++ b/binding-mri/oneshot-binding.cpp @@ -88,26 +88,6 @@ RB_METHOD(oneshotShake) return Qnil; } -RB_METHOD(oneshotSetWindowPos) -{ - RB_UNUSED_PARAM; - int x, y; - rb_get_args(argc, argv, "ii", &x, &y RB_ARG_END); - SDL_SetWindowPosition(shState->rtData().window, x, y); - return Qnil; -} - -RB_METHOD(oneshotGetWindowPos) -{ - RB_UNUSED_PARAM; - int x, y; - SDL_GetWindowPosition(shState->rtData().window, &x, &y); - VALUE ary = rb_ary_new(); - rb_ary_push(ary, rb_int_new(x)); - rb_ary_push(ary, rb_int_new(y)); - return ary; -} - void oneshotBindingInit() { VALUE module = rb_define_module("Oneshot");