Remove '~' == empty_string.

It has long outlived its usefulness (which was
to preserve token sequence in pre-sexpr files).

This will no doubt turn up latent issues....
This commit is contained in:
Jeff Young
2025-03-19 17:16:55 +00:00
parent bc4a40de76
commit 7e046e6c8b
9 changed files with 71 additions and 39 deletions
+1 -5
View File
@@ -290,10 +290,6 @@ std::string PSLIKE_PLOTTER::encodeStringForPlotter( const wxString& aUnicode )
{
switch (ch)
{
// The ~ shouldn't reach the outside
case '~':
break;
// These characters must be escaped
case '(':
case ')':
@@ -324,7 +320,7 @@ int PSLIKE_PLOTTER::returnPostscriptTextWidth( const wxString& aText, int aXSize
for( wchar_t asciiCode : aText)
{
// Skip the negation marks and untabled points.
if( asciiCode != '~' && asciiCode < 256 )
if( asciiCode < 256 )
tally += width_table[asciiCode];
}