py3: Remove unused PyStr_Decode macro from py3compat.h
authorAndrew Bartlett <abartlet@samba.org>
Thu, 6 Jun 2019 03:53:44 +0000 (05:53 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Jun 2019 12:14:25 +0000 (12:14 +0000)
Now that we are no longer developing new py2/py3 compatible code we can remove
any aspects of this header we do not use.  This will make the eventual removal
easier.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
python/py3compat.h

index d502d18fa5389d7d8fbe6b309afbe756c3d3aec9..736211724c816a88c1a0c090b4a287c7b83db032 100644 (file)
@@ -61,7 +61,6 @@
 #define PyStr_FromFormat PyUnicode_FromFormat
 #define PyStr_FromFormatV PyUnicode_FromFormatV
 #define PyStr_AsString PyUnicode_AsUTF8
-#define PyStr_Decode PyUnicode_Decode
 
 #define PyStr_AsUTF8String PyUnicode_AsUTF8String // returns PyBytes
 #define PyStr_AsUTF8 PyUnicode_AsUTF8