diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-15 09:42:54 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-15 09:42:54 +0100 |
| commit | 8db4be21f3effe3cbeee96bace00d25ffaebb317 (patch) | |
| tree | ffed9cb6fab6cdc61d0a2217085c16a115565a39 /apt-pkg/contrib/strutl.cc | |
| parent | 6e877571bc2dd50e38f2f35675c401d74dbe233d (diff) | |
Remove some more unused functions
Final ABI cleanup before unstable?!
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
| -rw-r--r-- | apt-pkg/contrib/strutl.cc | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index ea70ae581..5be6f00ce 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -235,41 +235,6 @@ char *_strrstrip(char *String) return String; } /*}}}*/ -// strtabexpand - Converts tabs into 8 spaces /*{{{*/ -// --------------------------------------------------------------------- -/* */ -char *_strtabexpand(char *String,size_t Len) -{ - for (char *I = String; I != I + Len && *I != 0; I++) - { - if (*I != '\t') - continue; - if (I + 8 > String + Len) - { - *I = 0; - return String; - } - - /* Assume the start of the string is 0 and find the next 8 char - division */ - int Len; - if (String == I) - Len = 1; - else - Len = 8 - ((String - I) % 8); - Len -= 2; - if (Len <= 0) - { - *I = ' '; - continue; - } - - memmove(I + Len,I + 1,strlen(I) + 1); - for (char *J = I; J + Len != I; *I = ' ', I++); - } - return String; -} - /*}}}*/ // ParseQuoteWord - Parse a single word out of a string /*{{{*/ // --------------------------------------------------------------------- /* This grabs a single word, converts any % escaped characters to their @@ -1183,20 +1148,6 @@ bool RFC1123StrToTime(std::string const &str,time_t &time) return true; } /*}}}*/ -// FTPMDTMStrToTime - Converts a ftp modification date into a time_t /*{{{*/ -// --------------------------------------------------------------------- -/* */ -bool FTPMDTMStrToTime(const char* const str,time_t &time) -{ - struct tm Tm; - // MDTM includes no whitespaces but recommend and ignored by strptime - if (strptime(str, "%Y %m %d %H %M %S", &Tm) == NULL) - return false; - - time = timegm(&Tm); - return true; -} - /*}}}*/ // StrToNum - Convert a fixed length string to a number /*{{{*/ // --------------------------------------------------------------------- /* This is used in decoding the crazy fixed length string headers in |
