From 44a5103e1ce9f968df02ac6e1f86fcf9415a1983 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Jun 2010 03:54:36 -0400 Subject: Moved value_t::label() to value.cc --- src/value.h | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 5971535c..7bd09c9a 100644 --- a/src/value.h +++ b/src/value.h @@ -904,39 +904,7 @@ public: /** * Informational methods. */ - string label(optional the_type = none) const { - switch (the_type ? *the_type : type()) { - case VOID: - return _("an uninitialized value"); - case BOOLEAN: - return _("a boolean"); - case DATETIME: - return _("a date/time"); - case DATE: - return _("a date"); - case INTEGER: - return _("an integer"); - case AMOUNT: - return _("an amount"); - case BALANCE: - return _("a balance"); - case STRING: - return _("a string"); - case MASK: - return _("a regexp"); - case SEQUENCE: - return _("a sequence"); - case SCOPE: - return _("a scope"); - case EXPR: - return _("a expr"); - default: - assert(false); - break; - } - assert(false); - return _(""); - } + string label(optional the_type = none) const; /** * Printing methods. -- cgit v1.2.3