1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

Remove ancient "use strict" annotations

We don't need these anymore. Theoretically this commit could go to develop, but for safety it's going to `travis/sourcemaps` first.
This commit is contained in:
Travis Ralston
2019-12-17 15:38:18 -07:00
parent f3a10a8166
commit f952f6742f
62 changed files with 14 additions and 68 deletions

View File

@ -1,4 +1,3 @@
"use strict";
console.log("Loading browser sdk"); console.log("Loading browser sdk");
var client = matrixcs.createClient("http://matrix.org"); var client = matrixcs.createClient("http://matrix.org");

View File

@ -1,5 +1,3 @@
"use strict";
var myUserId = "@example:localhost"; var myUserId = "@example:localhost";
var myAccessToken = "QGV4YW1wbGU6bG9jYWxob3N0.qPEvLuYfNBjxikiCjP"; var myAccessToken = "QGV4YW1wbGU6bG9jYWxob3N0.qPEvLuYfNBjxikiCjP";
var sdk = require("matrix-js-sdk"); var sdk = require("matrix-js-sdk");

View File

@ -1,4 +1,3 @@
"use strict";
console.log("Loading browser sdk"); console.log("Loading browser sdk");
var BASE_URL = "https://matrix.org"; var BASE_URL = "https://matrix.org";
var TOKEN = "accesstokengoeshere"; var TOKEN = "accesstokengoeshere";

View File

@ -16,8 +16,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
// load olm before the sdk if possible // load olm before the sdk if possible
import './olm-loader'; import './olm-loader';

View File

@ -25,7 +25,6 @@ limitations under the License.
* See also `megolm.spec.js`. * See also `megolm.spec.js`.
*/ */
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
// load olm before the sdk if possible // load olm before the sdk if possible

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {TestClient} from "../TestClient"; import {TestClient} from "../TestClient";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {EventTimeline} from "../../src/matrix"; import {EventTimeline} from "../../src/matrix";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {CRYPTO_ENABLED} from "../../src/client"; import {CRYPTO_ENABLED} from "../../src/client";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import HttpBackend from "matrix-mock-request"; import HttpBackend from "matrix-mock-request";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {EventStatus} from "../../src/matrix"; import {EventStatus} from "../../src/matrix";
import {MatrixScheduler} from "../../src/scheduler"; import {MatrixScheduler} from "../../src/scheduler";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {EventStatus} from "../../src/models/event"; import {EventStatus} from "../../src/models/event";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {MatrixEvent} from "../../src/models/event"; import {MatrixEvent} from "../../src/models/event";
import {EventTimeline} from "../../src/models/event-timeline"; import {EventTimeline} from "../../src/models/event-timeline";

View File

@ -15,8 +15,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
import anotherjson from "another-json"; import anotherjson from "another-json";
import * as utils from "../../src/utils"; import * as utils from "../../src/utils";
import * as testUtils from "../test-utils"; import * as testUtils from "../test-utils";

View File

@ -1,4 +1,3 @@
"use strict";
// load olm before the sdk if possible // load olm before the sdk if possible
import './olm-loader'; import './olm-loader';

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as ContentRepo from "../../src/content-repo"; import * as ContentRepo from "../../src/content-repo";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {EventTimeline} from "../../src/models/event-timeline"; import {EventTimeline} from "../../src/models/event-timeline";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {Filter} from "../../src/filter"; import {Filter} from "../../src/filter";

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {logger} from "../../src/logger"; import {logger} from "../../src/logger";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {logger} from "../../src/logger"; import {logger} from "../../src/logger";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {PushProcessor} from "../../src/pushprocessor"; import {PushProcessor} from "../../src/pushprocessor";

View File

@ -1,5 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as callbacks from "../../src/realtime-callbacks"; import * as callbacks from "../../src/realtime-callbacks";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {RoomMember} from "../../src/models/room-member"; import {RoomMember} from "../../src/models/room-member";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {RoomState} from "../../src/models/room-state"; import {RoomState} from "../../src/models/room-state";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../test-utils"; import * as utils from "../test-utils";
import {EventStatus, MatrixEvent} from "../../src/models/event"; import {EventStatus, MatrixEvent} from "../../src/models/event";

View File

@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {SyncAccumulator} from "../../src/sync-accumulator"; import {SyncAccumulator} from "../../src/sync-accumulator";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {EventTimeline} from "../../src/models/event-timeline"; import {EventTimeline} from "../../src/models/event-timeline";
import {TimelineIndex, TimelineWindow} from "../../src/timeline-window"; import {TimelineIndex, TimelineWindow} from "../../src/timeline-window";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import {User} from "../../src/models/user"; import {User} from "../../src/models/user";
import * as utils from "../test-utils"; import * as utils from "../test-utils";

View File

@ -1,4 +1,3 @@
"use strict";
import 'source-map-support/register'; import 'source-map-support/register';
import * as utils from "../../src/utils"; import * as utils from "../../src/utils";

View File

@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. MatrixBaseApis is currently only meant to be used * This is an internal module. MatrixBaseApis is currently only meant to be used

View File

@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** @module ContentHelpers */ /** @module ContentHelpers */

View File

@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module crypto/DeviceList * @module crypto/DeviceList

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module crypto/algorithms * @module crypto/algorithms

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* Defines m.olm encryption/decryption * Defines m.olm encryption/decryption

View File

@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* Defines m.olm encryption/decryption * Defines m.olm encryption/decryption

View File

@ -14,8 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module crypto/deviceinfo * @module crypto/deviceinfo

View File

@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module crypto * @module crypto

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module filter-component * @module filter-component
*/ */

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module filter * @module filter
*/ */

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. See {@link MatrixHttpApi} for the public class. * This is an internal module. See {@link MatrixHttpApi} for the public class.
* @module http-api * @module http-api

View File

@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** @module interactive-auth */ /** @module interactive-auth */

View File

@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
import {MemoryCryptoStore} from "./crypto/store/memory-crypto-store"; import {MemoryCryptoStore} from "./crypto/store/memory-crypto-store";
import {MemoryStore} from "./store/memory"; import {MemoryStore} from "./store/memory";

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/event-context * @module models/event-context

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/event-timeline-set * @module models/event-timeline-set
*/ */

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/event-timeline * @module models/event-timeline

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. See {@link MatrixEvent} and {@link RoomEvent} for * This is an internal module. See {@link MatrixEvent} and {@link RoomEvent} for

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/room-member * @module models/room-member
*/ */

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/room-state * @module models/room-state
*/ */

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/room-summary * @module models/room-summary
*/ */

View File

@ -15,7 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/room * @module models/room
*/ */

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/search-result * @module models/search-result

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module models/user * @module models/user
*/ */

View File

@ -24,8 +24,6 @@ limitations under the License.
* it will instead fire as soon as possible after resume. * it will instead fire as soon as possible after resume.
*/ */
"use strict";
import {logger} from './logger'; import {logger} from './logger';
// we schedule a callback at least this often, to check if we've missed out on // we schedule a callback at least this often, to check if we've missed out on

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module which manages queuing, scheduling and retrying * This is an internal module which manages queuing, scheduling and retrying
* of requests. * of requests.

View File

@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. See {@link MemoryStore} for the public class. * This is an internal module. See {@link MemoryStore} for the public class.
* @module store/memory * @module store/memory

View File

@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* @module store/session/webstorage * @module store/session/webstorage

View File

@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. * This is an internal module.
* @module store/stub * @module store/stub

View File

@ -16,7 +16,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/* /*
* TODO: * TODO:

View File

@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** @module timeline-window */ /** @module timeline-window */

View File

@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. * This is an internal module.
* @module utils * @module utils

View File

@ -15,7 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
"use strict";
/** /**
* This is an internal module. See {@link createNewMatrixCall} for the public API. * This is an internal module. See {@link createNewMatrixCall} for the public API.
* @module webrtc/call * @module webrtc/call