From 70214054e84b920ca3bea5119bd5d1456c809054 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Fri, 4 Oct 2013 21:03:31 -0700 Subject: Remove owning slices They were hardly ever used, hid errors, and were obsoleted by baseful x'es. --- src/strings/zstring.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/strings/zstring.cpp') diff --git a/src/strings/zstring.cpp b/src/strings/zstring.cpp index 3b86b0e..0de836c 100644 --- a/src/strings/zstring.cpp +++ b/src/strings/zstring.cpp @@ -56,25 +56,6 @@ namespace strings return &*begin(); } - ZS ZS::oslice_t(size_t o) const - { return ZS(really_construct_from_a_pointer, &begin()[o], base()); } - XS ZS::oslice_h(size_t o) const - { return XS(&*begin(), &begin()[o], base()); } - ZS ZS::orslice_t(size_t no) const - { return ZS(really_construct_from_a_pointer, &end()[-no], base()); } - XS ZS::orslice_h(size_t no) const - { return XS(&*begin(), &end()[-no], base()); } - ZS ZS::oislice_t(iterator it) const - { return ZS(really_construct_from_a_pointer, &*it, base()); } - XS ZS::oislice_h(iterator it) const - { return XS(&*begin(), &*it, base()); } - XS ZS::olslice(size_t o, size_t l) const - { return XS(&begin()[o], &begin()[o + l], base()); } - XS ZS::opslice(size_t b, size_t e) const - { return XS(&begin()[b], &begin()[e], base()); } - XS ZS::oislice(iterator b, iterator e) const - { return XS(&*b, &*e, base()); } - const char *decay_for_printf(const ZString& zs) { return zs.c_str(); -- cgit v1.2.3-70-g09d2