Skip to content

Commit 7ece119

Browse files
Remove old code
1 parent 242188f commit 7ece119

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

src/blocklypropclient.js

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,11 @@ var clientService = {
135135
}
136136

137137
// Status Notice IDs
138-
//const NS_DOWNLOADING = 002;
139-
//const NS_DOWNLOAD_SUCCESSFUL = 005;
140-
const NS_DOWNLOADING = 2;
138+
//const NS_DOWNLOADING = 002;
139+
//const NS_DOWNLOAD_SUCCESSFUL = 005;
140+
const NS_DOWNLOADING = 2;
141141
const NS_DOWNLOAD_SUCCESSFUL = 5;
142142

143-
144143
// Error Notice IDs
145144
const NE_DOWNLOAD_FAILED = 102;
146145

@@ -162,22 +161,6 @@ var find_client = function () {
162161
}
163162
};
164163

165-
var version_as_number = function (rawVersion) {
166-
var tempVersion = rawVersion.toString().split(".");
167-
tempVersion.push('0');
168-
169-
if (tempVersion.length < 3) {
170-
if (tempVersion.length === 1)
171-
tempVersion = '0.0.0';
172-
else
173-
tempVersion.unshift('0');
174-
}
175-
176-
// Allow for any of the three numbers to be between 0 and 1023.
177-
// Equivalent to: (Major * 104856) + (Minor * 1024) + Revision.
178-
return (Number(tempVersion[0]) << 20 | Number(tempVersion[1]) << 10 | Number(tempVersion[2]));
179-
};
180-
181164
var setPropToolbarButtons = function (ui_btn_state) {
182165
if (ui_btn_state === 'available') {
183166
if (projectData && projectData.board === 's3') {

0 commit comments

Comments
 (0)