summaryrefslogtreecommitdiffstats
path: root/ui/base/models
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 23:46:43 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-13 23:46:43 +0000
commit22eeb731ef7b681972b9aada1ae60c6e4b625334 (patch)
tree223ebfaad099f34f316b7676761fadf2544981a0 /ui/base/models
parente2f8541d43a232aba286461cc01c6fce6c675afc (diff)
downloadchromium_src-22eeb731ef7b681972b9aada1ae60c6e4b625334.zip
chromium_src-22eeb731ef7b681972b9aada1ae60c6e4b625334.tar.gz
chromium_src-22eeb731ef7b681972b9aada1ae60c6e4b625334.tar.bz2
Cleans up the set of TableColumn constructors.
BUG=none TEST=none R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/11550032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/models')
-rw-r--r--ui/base/models/table_model.cc38
-rw-r--r--ui/base/models/table_model.h9
2 files changed, 1 insertions, 46 deletions
diff --git a/ui/base/models/table_model.cc b/ui/base/models/table_model.cc
index 35c6c8e..f59e7dd 100644
--- a/ui/base/models/table_model.cc
+++ b/ui/base/models/table_model.cc
@@ -23,50 +23,14 @@ TableColumn::TableColumn()
sortable(false) {
}
-TableColumn::TableColumn(int id, const string16& title,
- Alignment alignment,
- int width)
- : id(id),
- title(title),
- alignment(alignment),
- width(width),
- percent(0),
- min_visible_width(0),
- sortable(false) {
-}
-
-TableColumn::TableColumn(int id, const string16& title,
- Alignment alignment, int width, float percent)
- : id(id),
- title(title),
- alignment(alignment),
- width(width),
- percent(percent),
- min_visible_width(0),
- sortable(false) {
-}
-
-// It's common (but not required) to use the title's IDS_* tag as the column
-// id. In this case, the provided conveniences look up the title string on
-// bahalf of the caller.
-TableColumn::TableColumn(int id, Alignment alignment, int width)
- : id(id),
- alignment(alignment),
- width(width),
- percent(0),
- min_visible_width(0),
- sortable(false) {
- title = l10n_util::GetStringUTF16(id);
-}
-
TableColumn::TableColumn(int id, Alignment alignment, int width, float percent)
: id(id),
+ title(l10n_util::GetStringUTF16(id)),
alignment(alignment),
width(width),
percent(percent),
min_visible_width(0),
sortable(false) {
- title = l10n_util::GetStringUTF16(id);
}
// TableModel -----------------------------------------------------------------
diff --git a/ui/base/models/table_model.h b/ui/base/models/table_model.h
index 04b2f0d..98286ed 100644
--- a/ui/base/models/table_model.h
+++ b/ui/base/models/table_model.h
@@ -97,15 +97,6 @@ struct UI_EXPORT TableColumn {
};
TableColumn();
- TableColumn(int id, const string16& title,
- Alignment alignment, int width);
- TableColumn(int id, const string16& title,
- Alignment alignment, int width, float percent);
-
- // It's common (but not required) to use the title's IDS_* tag as the column
- // id. In this case, the provided conveniences look up the title string on
- // bahalf of the caller.
- TableColumn(int id, Alignment alignment, int width);
TableColumn(int id, Alignment alignment, int width, float percent);
// A unique identifier for the column.