py3: Remove unused PyStr_AsUTF8String macro from py3compat.h
authorAndrew Bartlett <abartlet@samba.org>
Thu, 6 Jun 2019 03:54:36 +0000 (05:54 +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 736211724c816a88c1a0c090b4a287c7b83db032..3c20407db177d003e3e6514fb977b1f93bffc479 100644 (file)
@@ -62,7 +62,6 @@
 #define PyStr_FromFormatV PyUnicode_FromFormatV
 #define PyStr_AsString PyUnicode_AsUTF8
 
-#define PyStr_AsUTF8String PyUnicode_AsUTF8String // returns PyBytes
 #define PyStr_AsUTF8 PyUnicode_AsUTF8
 #define PyStr_AsUTF8AndSize PyUnicode_AsUTF8AndSize