Blob Blame History Raw
From d24b9713c4526593c6052be0fd2f65e9427a8405 Mon Sep 17 00:00:00 2001
From: Scott Talbert <swt@techie.net>
Date: Sun, 17 Mar 2019 22:23:55 -0400
Subject: [PATCH 2/2] Remove MappedType for size_t as SIP added native support
 in 4.19.14

---
 src/wacky_ints.sip | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/src/wacky_ints.sip b/src/wacky_ints.sip
index 4677e537..7fd804a5 100644
--- a/src/wacky_ints.sip
+++ b/src/wacky_ints.sip
@@ -13,35 +13,6 @@
 //--------------------------------------------------------------------------
 
 
-// size_t will either be equivalent to an unsigned long, or to an
-// unsigned long long. wxWidgets' configure script has already figured out
-// which it is, so we can make it conditional on those results.
-
-%MappedType size_t {
-
-    %TypeHeaderCode
-    #include <wxPython/wxpy_api.h>
-    %End
-
-    %ConvertToTypeCode
-        // Allow conversions from any number type
-        if (!sipIsErr) {
-            if (PyNumber_Check(sipPy))
-                return TRUE;
-            return FALSE;
-        }
-
-        // Do the conversion
-        *sipCppPtr = new size_t(wxPyInt_AsSize_t(sipPy));
-        return sipGetState(sipTransferObj);
-    %End
-
-    %ConvertFromTypeCode
-        return wxPyInt_FromSize_t(*sipCpp);
-    %End
-};
-
-
 // This type is a signed integer value that is large enough to hold a
 // pointer.  Again we'll use the results of wxWidgets configuration.
 %MappedType wxIntPtr {
-- 
2.20.1