diff --git a/include/opendht/infohash.h b/include/opendht/infohash.h
index a8f6353a36cd61c641f3b0a480d2fda20798a890..33c96c843ed586164095a93791611cdd40342400 100644
--- a/include/opendht/infohash.h
+++ b/include/opendht/infohash.h
@@ -199,10 +199,6 @@ public:
 
     std::string toString() const;
 
-    const char* toCString() const {
-        return toString().c_str();
-    }
-
     template <typename Packer>
     void msgpack_pack(Packer& pk) const
     {