summaryrefslogtreecommitdiffstats
path: root/ui/base/models
diff options
context:
space:
mode:
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.