summaryrefslogtreecommitdiff
path: root/src/mongo/base/error_codes.tpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/base/error_codes.tpl.h')
-rw-r--r--src/mongo/base/error_codes.tpl.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/base/error_codes.tpl.h b/src/mongo/base/error_codes.tpl.h
index a2b2cbb7f06..ff4d3b0822d 100644
--- a/src/mongo/base/error_codes.tpl.h
+++ b/src/mongo/base/error_codes.tpl.h
@@ -73,15 +73,6 @@ public:
static Error fromString(StringData name);
/**
- * Casts an integer "code" to an Error. Unrecognized codes are preserved, meaning
- * that the result of a call to fromInt() may not be one of the values in the
- * Error enumeration.
- */
- static Error fromInt(int code) {
- return static_cast<Error>(code);
- }
-
- /**
* Generic predicate to test if a given error code is in a category.
*
* This version is intended to simplify forwarding by Status and DBException. Non-generic