Revert "[Folly] Helper method to get exception type"
authorHitesh Khandelwal <hitesh@fb.com>
Fri, 20 Dec 2013 22:02:39 +0000 (14:02 -0800)
committerPeter Griess <pgriess@fb.com>
Thu, 26 Dec 2013 21:25:49 +0000 (13:25 -0800)
Summary: This reverts commit 2c4f8da739ba0294f2c947753a0e30fee291feb5.

Test Plan: Compiles

Reviewed By: tudorb@fb.com

FB internal diff: D1108840

folly/String.h

index e0790f54e24a1ff3de452e130b6b9434e5c6ba09..da93cd265d106a296e60a651aad59cd1cfb16bfd 100644 (file)
@@ -352,13 +352,6 @@ inline size_t demangle(const std::type_info& type, char* buf, size_t bufSize) {
   return demangle(type.name(), buf, bufSize);
 }
 
-/**
- * Debug string for an exception: include type only.
- */
-inline fbstring exceptionTypeStr(const std::exception& e) {
-  return folly::to<fbstring>(demangle(typeid(e)));
-}
-
 /**
  * Debug string for an exception: include type and what().
  */