0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 13:28:54 +01:00

ircd:Ⓜ️:vm: Remove unused fault codes.

This commit is contained in:
Jason Volk 2019-04-07 20:57:43 -07:00
parent 5782f2a5f5
commit d08bd0b336
2 changed files with 6 additions and 11 deletions

View file

@ -126,12 +126,10 @@ enum ircd::m::vm::fault
ACCEPT = 0x00, ///< No fault.
EXISTS = 0x01, ///< Replaying existing event. (#ex)
INVALID = 0x02, ///< Non-conforming event format. (#ud)
DEBUGSTEP = 0x04, ///< Debug step. (#db)
BREAKPOINT = 0x08, ///< Debug breakpoint. (#bp)
GENERAL = 0x10, ///< General protection fault. (#gp)
GENERAL = 0x04, ///< General protection fault. (#gp)
STATE = 0x10, ///< Required state is missing (#st)
EVENT = 0x20, ///< Eval requires addl events in the ef register (#ef)
STATE = 0x40, ///< Required state is missing (#st)
INTERRUPT = 0x80, ///< ctx::interrupted (#nmi)
INTERRUPT = 0x40, ///< ctx::interrupted (#nmi)
};
/// Evaluation Options
@ -236,17 +234,16 @@ struct ircd::m::vm::opts
/// Mask of faults that are not thrown as exceptions out of eval(). If
/// masked, the fault is returned from eval(). By default, the EXISTS
/// fault is masked which means existing events won't kill eval loops
/// as well as the debug related.
/// fault is masked which means existing events won't kill eval loops.
fault_t nothrows
{
EXISTS | DEBUGSTEP | BREAKPOINT
EXISTS
};
/// Mask of faults that are logged to the error facility in vm::log.
fault_t errorlog
{
~(EXISTS | DEBUGSTEP | BREAKPOINT)
~(EXISTS)
};
/// Mask of faults that are logged to the warning facility in vm::log

View file

@ -1135,8 +1135,6 @@ ircd::m::vm::reflect(const enum fault &code)
case fault::ACCEPT: return "ACCEPT";
case fault::EXISTS: return "EXISTS";
case fault::INVALID: return "INVALID";
case fault::DEBUGSTEP: return "DEBUGSTEP";
case fault::BREAKPOINT: return "BREAKPOINT";
case fault::GENERAL: return "GENERAL";
case fault::EVENT: return "EVENT";
case fault::STATE: return "STATE";