From 80a1e22a987c4e749dd03500edc3ac4e189537c5 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 12 Feb 2023 12:01:21 +1100 Subject: Feature [feature-requests:#1476] Move default representation code into SpecialRepresentations class. --- src/EditView.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/EditView.cxx') diff --git a/src/EditView.cxx b/src/EditView.cxx index f93303f6c..259ebf30d 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -178,13 +178,6 @@ void DrawStyledText(Surface *surface, const ViewStyle &vs, int styleOffset, PRec } } -void Hexits(char *hexits, int ch) noexcept { - hexits[0] = 'x'; - hexits[1] = "0123456789ABCDEF"[ch / 0x10]; - hexits[2] = "0123456789ABCDEF"[ch % 0x10]; - hexits[3] = 0; -} - } EditView::EditView() { @@ -894,20 +887,6 @@ ColourRGBA TextBackground(const EditModel &model, const ViewStyle &vsDraw, const } } -const char *ControlCharacterString(unsigned char ch) noexcept { - const char *const reps[] = { - "NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", - "BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI", - "DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB", - "CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US" - }; - if (ch < std::size(reps)) { - return reps[ch]; - } else { - return "BAD"; - } -} - void DrawTextBlob(Surface *surface, const ViewStyle &vsDraw, PRectangle rcSegment, std::string_view text, ColourRGBA textBack, ColourRGBA textFore, bool fillBackground) { if (rcSegment.Empty()) -- cgit v1.2.3