Skip to content

Commit 16b6688

Browse files
committed
remove unused
1 parent 43869a9 commit 16b6688

File tree

9 files changed

+60
-119
lines changed

9 files changed

+60
-119
lines changed

src/main/webapp/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
{
8989
var host = window.location.host;
9090

91-
// todo: codio check here
9291
// Redirects apex, drive and rt to www
9392
if (host === 'draw.io' || host === 'rt.draw.io' || host === 'drive.draw.io')
9493
{

src/main/webapp/js/app.min.js

Lines changed: 57 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/js/diagramly/App.js

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,7 @@ App.getStoredMode = function()
576576
}
577577
}
578578

579-
// todo: codio CodioClient
580-
// copypaste:
581-
// Loads Trello for all browsers but < IE10 if not disabled or if enabled and in embed mode
579+
// Loads Codio
582580
if (typeof window.CodioClient === 'function')
583581
{
584582
// Immediately loads client
@@ -1063,8 +1061,6 @@ App.main = function(callback, createUi)
10631061
{
10641062
window.TrelloClient = null;
10651063
}
1066-
1067-
// todo: codio CodioClient ??
10681064
}
10691065

10701066
if (callback != null)
@@ -1657,11 +1653,6 @@ App.prototype.init = function()
16571653
initTrelloClient();
16581654
}
16591655

1660-
/*
1661-
todo: codio CodioClient
1662-
new CodioClient ?
1663-
or add to window ?
1664-
*/
16651656
/**
16661657
* Lazy-loading for Codio
16671658
*/
@@ -4447,16 +4438,6 @@ App.prototype.saveLibrary = function(name, images, file, mode, noSpin, noReload,
44474438
this.libraryLoaded(newFile, images);
44484439
}), error, folderId);
44494440
}
4450-
else if (mode == App.MODE_CODIO && this.codio != null && this.spinner.spin(document.body, mxResources.get('inserting')))
4451-
{
4452-
// todo: codio. what is insert library?
4453-
this.codio.insertLibrary(name, xml, mxUtils.bind(this, function(newFile)
4454-
{
4455-
this.spinner.stop();
4456-
this.hideDialog(true);
4457-
this.libraryLoaded(newFile, images);
4458-
}), error, folderId);
4459-
}
44604441
else if (mode == App.MODE_BROWSER)
44614442
{
44624443
var fn = mxUtils.bind(this, function()
@@ -4909,7 +4890,6 @@ App.prototype.isModeEnabled = function(mode)
49094890
mxClient.IS_SVG && (document.documentMode == null ||
49104891
document.documentMode > 9);
49114892
}
4912-
// todo: codio CodioClient
49134893
else if (mode == App.MODE_CODIO)
49144894
{
49154895
return this.codio != null;
@@ -6695,7 +6675,6 @@ App.prototype.pickFolder = function(mode, fn, enabled, direct, force, returnPick
66956675
fn(cardId);
66966676
}));
66976677
}
6698-
// todo: codio
66996678
else
67006679
{
67016680
EditorUi.prototype.pickFolder.apply(this, arguments);
@@ -6798,7 +6777,6 @@ App.prototype.exportFile = function(data, filename, mimeType, base64Encoded, mod
67986777
}), false, folderId);
67996778
}
68006779
}
6801-
// todo: codio
68026780
else if (mode == App.MODE_BROWSER)
68036781
{
68046782
if (window.StorageFile != null && !base64Encoded &&
@@ -7222,12 +7200,6 @@ App.prototype.updateHeader = function()
72227200
this.appIcon.style.backgroundImage = 'url(' + IMAGE_PATH + '/trello-logo-white-orange.svg)';
72237201
this.appIcon.style.backgroundSize = '70% 70%';
72247202
}
7225-
else if (mode == App.MODE_CODIO)
7226-
{
7227-
// todo: codio
7228-
this.appIcon.style.backgroundImage = 'url(' + IMAGE_PATH + '/codio-log-white.svg)';
7229-
this.appIcon.style.backgroundSize = '70% 70%';
7230-
}
72317203
}
72327204
}));
72337205

@@ -8171,7 +8143,6 @@ App.prototype.toggleUserPanel = function()
81718143
}
81728144
}), mxResources.get('trello'));
81738145
}
8174-
// todo: codio.
81758146

81768147
if (uiTheme == 'min')
81778148
{

src/main/webapp/js/diagramly/CodioClient.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@ CodioClient.prototype.pickLibrary = function(fn)
6363

6464
CodioClient.prototype.pickFolder = function(fn)
6565
{
66-
// todo: codio what is this?
66+
// Do nothing
6767
};
6868

6969
CodioClient.prototype.pickFile = function(fn, returnObject)
7070
{
7171
fn = (fn != null) ? fn : mxUils.bind(this, function(id)
7272
{
73-
// todo: codio what to do ?
7473
this.ui.loadFile('C' + encodeURIComponent(id))
7574
});
7675
};

src/main/webapp/js/diagramly/CodioFile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ CodioFile.prototype.getParentId = function()
2727

2828
CodioFile.prototype.getIdOf = function(itemObj, parent)
2929
{
30-
// todo: codio. do need this?
3130
return 'parentId';
3231
};
3332

@@ -63,7 +62,6 @@ CodioFile.prototype.getSize = function()
6362

6463
CodioFile.prototype.isConflict = function(req)
6564
{
66-
// todo: codio. check if window codio not working?
6765
return req != null;
6866
};
6967

src/main/webapp/js/diagramly/Dialogs.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ var StorageDialog = function(editorUi, fn, rowLimit)
197197
var hd = document.createElement('p');
198198
hd.style.cssText = 'font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;';
199199
mxUtils.write(hd, mxResources.get('saveDiagramsTo') + ':');
200-
// todo: codio add codio type, or autoselect it via codio
201200
div.appendChild(hd);
202201

203202
var addButtons = function()
@@ -238,11 +237,6 @@ var StorageDialog = function(editorUi, fn, rowLimit)
238237
{
239238
addLogo(IMAGE_PATH + '/gitlab-logo.svg', mxResources.get('gitlab'), App.MODE_GITLAB, 'gitLab');
240239
}
241-
242-
if (editorUi.codio != null)
243-
{
244-
addLogo(IMAGE_PATH + '/gitlab-logo.svg', mxResources.get('codio'), App.MODE_CODIO, 'codio');
245-
}
246240
};
247241

248242
div.appendChild(buttons);
@@ -360,11 +354,6 @@ var SplashDialog = function(editorUi)
360354
{
361355
logo.src = IMAGE_PATH + '/trello-logo.svg';
362356
service = mxResources.get('trello');
363-
} else if (editorUi.mode == App.MODE_CODIO)
364-
{
365-
// todo: codio logo
366-
logo.src = IMAGE_PATH + '/github-logo.svg';
367-
service = mxResources.get('codio');
368357
}
369358
else
370359
{
@@ -651,7 +640,6 @@ var SplashDialog = function(editorUi)
651640
});
652641
}
653642
}
654-
// todo: codio. no logout?
655643

656644
div.appendChild(buttons);
657645
this.container = div;
@@ -1122,7 +1110,6 @@ var GoogleSitesDialog = function(editorUi, publicUrl)
11221110
var s = editorUi.getBasenames().join(';');
11231111
var file = editorUi.getCurrentFile();
11241112

1125-
// todo: codio. what is update?
11261113
function update()
11271114
{
11281115
var title = (file != null && file.getTitle() != null) ? file.getTitle() : this.defaultFilename;
@@ -2866,11 +2853,6 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
28662853
{
28672854
logo.src = IMAGE_PATH + '/osa_database.png';
28682855
}
2869-
else if (editorUi.mode == App.MODE_CODIO)
2870-
{
2871-
// todo: codio. create file from template
2872-
logo.src = IMAGE_PATH + '/github-logo.svg';
2873-
}
28742856
else
28752857
{
28762858
logo.src = IMAGE_PATH + '/osa_drive-harddisk.png';
@@ -2916,7 +2898,6 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
29162898
}
29172899
else if (editorUi.mode == App.MODE_CODIO && editorUi.codio != null)
29182900
{
2919-
// todo: codio. file from template?
29202901
ext = editorUi.codio.extension;
29212902
filename = editorUi.codio.getFileName();
29222903
withoutType = true;
@@ -3016,7 +2997,6 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
30162997
zIndex: 2e9 // The z-index (defaults to 2000000000)
30172998
});
30182999

3019-
// todo: codio. here is create.
30203000
var createButton = mxUtils.button(createButtonLabel || mxResources.get('create'), function()
30213001
{
30223002
createButton.setAttribute('disabled', 'disabled');
@@ -5413,7 +5393,6 @@ var CreateDialog = function(editorUi, title, createFn, cancelFn, dlgTitle, btnLa
54135393

54145394
addLogo(IMAGE_PATH + '/trello-logo.svg', mxResources.get('trello'), App.MODE_TRELLO, 'trello');
54155395
}
5416-
// todo: codio CodioClient
54175396
}
54185397

54195398
if (!Editor.useLocalStorage || urlParams['storage'] == 'device' ||

src/main/webapp/js/diagramly/EditorUi.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@
277277
{
278278
try
279279
{
280-
if (window.console != null)
281-
// if (window.console != null && urlParams['test'] == '1')
280+
if (window.console != null && urlParams['test'] == '1')
282281
{
283282
var args = [new Date().toISOString()];
284283

@@ -17777,7 +17776,6 @@
1777717776
serviceCount++
1777817777
}
1777917778

17780-
// todo: codio. should be typeof window.codio ???
1778117779
if (this.codio != null || typeof window.CodioClient === 'function')
1778217780
{
1778317781
serviceCount++

src/main/webapp/js/diagramly/GitHubFile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ GitHubFile.prototype.saveFile = function(title, revision, success, error, unload
260260
{
261261
if (this.getTitle() == title)
262262
{
263-
// todo: codio. I like this saving code.
264263
try
265264
{
266265
// Sets shadow modified state during save

src/main/webapp/plugins/googledrive.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ Draw.loadPlugin(function(ui)
1515

1616
isLocalStorage = false;
1717

18-
// todo: codio CodioFile
1918
});

0 commit comments

Comments
 (0)