Remove unused decodeOctalEscaped
Besides being unused, this function has a bug that it will incorrectly decode the path component Ubuntu\04016.04.2\040LTS\040amd64 as "Ubuntu.04.2 LTS amd64" instead of "Ubuntu 16.04.2 LTS amd64".
This commit is contained in:
		
							parent
							
								
									e2f9a61dc9
								
							
						
					
					
						commit
						6bb4e3e8fe
					
				
					 2 changed files with 0 additions and 21 deletions
				
			
		|  | @ -1140,21 +1140,6 @@ std::string toLower(const std::string & s) | |||
| } | ||||
| 
 | ||||
| 
 | ||||
| string decodeOctalEscaped(const string & s) | ||||
| { | ||||
|     string r; | ||||
|     for (string::const_iterator i = s.begin(); i != s.end(); ) { | ||||
|         if (*i != '\\') { r += *i++; continue; } | ||||
|         unsigned char c = 0; | ||||
|         ++i; | ||||
|         while (i != s.end() && *i >= '0' && *i < '8') | ||||
|             c = c * 8 + (*i++ - '0'); | ||||
|         r += c; | ||||
|     } | ||||
|     return r; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| void ignoreException() | ||||
| { | ||||
|     try { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue