зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1334276 - remove dead code from Printf.cpp; r=froydnj
This removes some "#if 0"s, and some related code that is also obviously dead. MozReview-Commit-ID: 1vEPohvdpw8 --HG-- extra : rebase_source : b7a1c08c422f0aae6538db03331773f31be33ac6
This commit is contained in:
Родитель
995e59eb20
Коммит
62fa1c54e6
|
@ -459,15 +459,10 @@ BuildArgArray(const char* fmt, va_list ap, NumArgStateVector& nas)
|
|||
case 'S':
|
||||
#if defined(XP_WIN)
|
||||
nas[cn].type = TYPE_WSTRING;
|
||||
break;
|
||||
#endif
|
||||
/* Fall through here when not XP_WIN. */
|
||||
case 'C':
|
||||
case 'E':
|
||||
case 'G':
|
||||
// XXX not supported I suppose
|
||||
#else
|
||||
MOZ_ASSERT(0);
|
||||
nas[cn].type = TYPE_UNKNOWN;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case 's':
|
||||
|
@ -816,15 +811,6 @@ mozilla::PrintfTarget::vprint(const char* fmt, va_list ap)
|
|||
radix = 16;
|
||||
goto fetch_and_convert;
|
||||
|
||||
#if 0
|
||||
case 'C':
|
||||
case 'E':
|
||||
case 'G':
|
||||
// XXX not supported I suppose
|
||||
MOZ_ASSERT(0);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case 's':
|
||||
if (type == TYPE_INTN) {
|
||||
u.s = va_arg(ap, const char*);
|
||||
|
@ -876,9 +862,6 @@ mozilla::PrintfTarget::vprint(const char* fmt, va_list ap)
|
|||
|
||||
default:
|
||||
// Not a % token after all... skip it
|
||||
#if 0
|
||||
MOZ_ASSERT(0);
|
||||
#endif
|
||||
if (!emit("%", 1))
|
||||
return false;
|
||||
if (!emit(fmt - 1, 1))
|
||||
|
|
Загрузка…
Ссылка в новой задаче