@@ -19,7 +19,6 @@ import {
1919 Revision ,
2020 ComparisonRevisionData ,
2121 DEFAULT_SECTION_COLLAPSED ,
22- DEFAULT_SECTION_NAMES ,
2322 DEFAULT_SECTION_SIZES ,
2423 PlotSize ,
2524 Section ,
@@ -39,7 +38,6 @@ export class PlotsModel extends ModelWithPersistence {
3938
4039 private plotSizes : Record < Section , PlotSize >
4140 private sectionCollapsed : SectionCollapsed
42- private sectionNames : Record < Section , string >
4341 private branchRevisions : Record < string , string > = { }
4442 private workspaceRunningCheckpoint : string | undefined
4543
@@ -71,10 +69,6 @@ export class PlotsModel extends ModelWithPersistence {
7169 PersistenceKey . PLOT_SECTION_COLLAPSED ,
7270 DEFAULT_SECTION_COLLAPSED
7371 )
74- this . sectionNames = this . revive (
75- PersistenceKey . PLOT_SECTION_NAMES ,
76- DEFAULT_SECTION_NAMES
77- )
7872 this . comparisonOrder = this . revive ( PersistenceKey . PLOT_COMPARISON_ORDER , [ ] )
7973 this . selectedMetrics = this . revive (
8074 PersistenceKey . PLOT_SELECTED_METRICS ,
@@ -153,7 +147,6 @@ export class PlotsModel extends ModelWithPersistence {
153147 return {
154148 colors,
155149 plots : this . getPlots ( this . checkpointPlots , selectedExperiments ) ,
156- sectionName : this . getSectionName ( Section . CHECKPOINT_PLOTS ) ,
157150 selectedMetrics : this . getSelectedMetrics ( ) ,
158151 size : this . getPlotSize ( Section . CHECKPOINT_PLOTS )
159152 }
@@ -289,15 +282,6 @@ export class PlotsModel extends ModelWithPersistence {
289282 return this . sectionCollapsed
290283 }
291284
292- public setSectionName ( section : Section , name : string ) {
293- this . sectionNames [ section ] = name
294- this . persist ( PersistenceKey . PLOT_SECTION_NAMES , this . sectionNames )
295- }
296-
297- public getSectionName ( section : Section ) : string {
298- return this . sectionNames [ section ] || DEFAULT_SECTION_NAMES [ section ]
299- }
300-
301285 private removeStaleData ( ) {
302286 return Promise . all ( [
303287 this . removeStaleBranches ( ) ,
0 commit comments