Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Unified Diff: third_party/WebKit/Source/core/layout/ListMarkerText.cpp

Issue 2807213005: ListMarkerText.cpp: Delete dead code. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ListMarkerText.cpp
diff --git a/third_party/WebKit/Source/core/layout/ListMarkerText.cpp b/third_party/WebKit/Source/core/layout/ListMarkerText.cpp
index efa68536910c01fbabeb8687adc06b0aa6e59428..046563a91424f47ce64b6b25f2458efa8326cc35 100644
--- a/third_party/WebKit/Source/core/layout/ListMarkerText.cpp
+++ b/third_party/WebKit/Source/core/layout/ListMarkerText.cpp
@@ -119,25 +119,6 @@ static inline String ToAlphabeticOrNumeric(numberType number,
}
template <typename CharacterType>
-static String ToSymbolic(int number,
- const CharacterType* symbols,
- unsigned symbols_size) {
- DCHECK_GT(number, 0);
- DCHECK_GE(symbols_size, 1u);
- unsigned number_shadow = number;
- --number_shadow;
-
- // The asterisks list-style-type is the worst case; we show |numberShadow|
- // asterisks.
- StringBuilder letters;
- letters.Append(symbols[number_shadow % symbols_size]);
- unsigned num_symbols = number_shadow / symbols_size;
- while (num_symbols--)
- letters.Append(symbols[number_shadow % symbols_size]);
- return letters.ToString();
-}
-
-template <typename CharacterType>
static String ToAlphabetic(int number,
const CharacterType* alphabet,
unsigned alphabet_size) {
@@ -165,12 +146,6 @@ static inline String ToNumeric(int number,
return ToNumeric(number, alphabet, size);
}
-template <typename CharacterType, size_t size>
-static inline String ToSymbolic(int number,
- const CharacterType (&alphabet)[size]) {
- return ToSymbolic(number, alphabet, size);
-}
-
static void ToHebrewUnder1000(int number, Vector<UChar>& letters) {
// FIXME: CSS3 mentions various refinements not implemented here.
// FIXME: Should take a look at Mozilla's HebrewToText function (in
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698