File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,28 +309,6 @@ app.calc.isSelectedPartSheetView = function () {
309309 return app . calc . isPartSheetView ( app . map . _docLayer . _selectedPart ) ;
310310} ;
311311
312- // Returns the name of the default sheet a given sheet view part.
313- app . calc . getDefaultViewNameForPart = function ( part ) {
314- if ( ! app . map . _docLayer || ! app . map . _docLayer . _lastStatusJSON ) return null ;
315- var parts = app . map . _docLayer . _lastStatusJSON . parts ;
316- if ( part >= parts . length ) return null ;
317-
318- var partData = parts [ part ] ;
319- if ( partData . sheetviewid === undefined || partData . sheetviewid < 0 )
320- return null ;
321-
322- var defaultViewHash = partData . defaultviewhash ;
323- if ( ! defaultViewHash ) return null ;
324-
325- for ( var i = 0 ; i < parts . length ; i ++ ) {
326- if ( parts [ i ] . hash === defaultViewHash ) {
327- return parts [ i ] . name ;
328- }
329- }
330-
331- return null ;
332- } ;
333-
334312// Checks if the given part is the default (base) sheet of the currently selected sheet view.
335313app . calc . isDefaultPartOfSelectedSheetView = function ( part ) {
336314 if ( ! app . map . _docLayer || ! app . map . _docLayer . _lastStatusJSON ) return false ;
You can’t perform that action at this time.
0 commit comments