OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-cogutil commits / e1e56f3

Remove unused function
e1e56f39203f3de75758ec322ef07db0f18dfb23
by Linas Vepštas <linasvepstas@gmail.com> · 2025-12-10T20:27:43.000Z

Changed files (1) +5 -15

opencog/util/misc.h +5 -15
……@@ -47,6 +47,11 @@ namespace opencog
4747 */
4848unsigned int bitcount(unsigned long n);
4949
50#ifndef WIN32
51/// Demangle c++ function names.
52std::string demangle(const std::string& mangled);
53#endif
54
5055template <typename _OutputIterator>
5156void tokenize(const std::string& str,
5257 _OutputIterator tokens,
……@@ -68,21 +73,6 @@ void tokenize(const std::string& str,
6873 }
6974}
7075
71template<typename _T>
72struct safe_deleter
73{
74 void operator()(_T*& __ptr) {
75 if (__ptr) {
76 delete __ptr;
77 __ptr = 0;
78 }
79 }
80};
81
82#ifndef WIN32
83std::string demangle(const std::string& mangled);
84#endif
85
8676/** @}*/
8777} // namespace opencog
8878