From 1210f54233f9de455d83e39332a40648be892364 Mon Sep 17 00:00:00 2001 From: Haoyu Bai Date: Sat, 8 Aug 2009 09:55:12 +0000 Subject: [PATCH] remove some unused comments [SVN r55460] --- include/boost/python/converter/builtin_converters.hpp | 3 --- include/boost/python/module_init.hpp | 3 --- src/object/class.cpp | 1 - 3 files changed, 7 deletions(-) diff --git a/include/boost/python/converter/builtin_converters.hpp b/include/boost/python/converter/builtin_converters.hpp index 206aba75..63ae1e1a 100644 --- a/include/boost/python/converter/builtin_converters.hpp +++ b/include/boost/python/converter/builtin_converters.hpp @@ -124,8 +124,6 @@ BOOST_PYTHON_TO_INT(long) // using Python's macro instead of Boost's - we don't seem to get the // config right all the time. -// XXX(bhy) It was PyInt_Type instead of PyLong_Type here. -// But why PyInt_Type? PyLong_From* converter is used here! # ifdef HAVE_LONG_LONG BOOST_PYTHON_TO_PYTHON_BY_VALUE(signed BOOST_PYTHON_LONG_LONG, ::PyLong_FromLongLong(x), &PyLong_Type) BOOST_PYTHON_TO_PYTHON_BY_VALUE(unsigned BOOST_PYTHON_LONG_LONG, ::PyLong_FromUnsignedLongLong(x), &PyLong_Type) @@ -144,7 +142,6 @@ BOOST_PYTHON_TO_PYTHON_BY_VALUE(std::string, ::PyString_FromStringAndSize(x.data #endif #if defined(Py_USING_UNICODE) && !defined(BOOST_NO_STD_WSTRING) -// XXX(bhy) Here, similar to the above, PyString_Type -> PyUnicode_Type BOOST_PYTHON_TO_PYTHON_BY_VALUE(std::wstring, ::PyUnicode_FromWideChar(x.data(),implicit_cast(x.size())), &PyUnicode_Type) # endif BOOST_PYTHON_TO_PYTHON_BY_VALUE(float, ::PyFloat_FromDouble(x), &PyFloat_Type) diff --git a/include/boost/python/module_init.hpp b/include/boost/python/module_init.hpp index 99dddec6..e552dcce 100644 --- a/include/boost/python/module_init.hpp +++ b/include/boost/python/module_init.hpp @@ -15,9 +15,6 @@ BOOST_PYTHON_DECL PyObject* init_module(char const* name, void(*)()); }}} -// TODO(bhy) Take care of this later. -// But any reseaon we don't use BOOST_PYTHON_DECL here? - # if PY_VERSION_HEX >= 0x03000000 # define _BOOST_PYTHON_MODULE_INIT(name) \ diff --git a/src/object/class.cpp b/src/object/class.cpp index 38a78869..7d74180c 100644 --- a/src/object/class.cpp +++ b/src/object/class.cpp @@ -355,7 +355,6 @@ namespace objects PyObject* d = type_->tp_dict; PyObject* instance_size_obj = PyObject_GetAttrString(d, const_cast("__instance_size__")); - // TODO(bhy) ssize_t for Python 2.x Py_ssize_t instance_size = instance_size_obj ? #if PY_VERSION_HEX >= 0x03000000 PyLong_AsSsize_t(instance_size_obj) : 0;