summaryrefslogtreecommitdiff
path: root/libxsd/xsd/cxx/tree/facet.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libxsd/xsd/cxx/tree/facet.hxx')
-rw-r--r--libxsd/xsd/cxx/tree/facet.hxx41
1 files changed, 0 insertions, 41 deletions
diff --git a/libxsd/xsd/cxx/tree/facet.hxx b/libxsd/xsd/cxx/tree/facet.hxx
deleted file mode 100644
index d0a5d8c..0000000
--- a/libxsd/xsd/cxx/tree/facet.hxx
+++ /dev/null
@@ -1,41 +0,0 @@
-// file : xsd/cxx/tree/facet.hxx
-// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
-
-#ifndef XSD_CXX_TREE_FACET_HXX
-#define XSD_CXX_TREE_FACET_HXX
-
-namespace xsd
-{
- namespace cxx
- {
- namespace tree
- {
- // We need to keep this type POD in order to be able to create a
- // static array.
- //
- struct facet
- {
- enum id_type
- {
- none,
- total_digits,
- fraction_digits
- };
-
- id_type id;
- unsigned long value;
-
- static const facet*
- find (const facet* facets, facet::id_type id)
- {
- while (facets->id != id && facets->id != none)
- ++facets;
-
- return facets->id != none ? facets : 0;
- }
- };
- }
- }
-}
-
-#endif // XSD_CXX_TREE_FACET_HXX