From f952f6742fcea394fc91998f3fbcb76d1bb11c14 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 17 Dec 2019 15:38:18 -0700 Subject: [PATCH] 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. --- examples/browser/browserTest.js | 1 - examples/node/app.js | 2 -- examples/voip/browserTest.js | 1 - spec/TestClient.js | 2 -- spec/integ/matrix-client-crypto.spec.js | 1 - spec/integ/matrix-client-event-emitter.spec.js | 1 - spec/integ/matrix-client-event-timeline.spec.js | 1 - spec/integ/matrix-client-methods.spec.js | 1 - spec/integ/matrix-client-opts.spec.js | 1 - spec/integ/matrix-client-retrying.spec.js | 1 - spec/integ/matrix-client-room-timeline.spec.js | 1 - spec/integ/matrix-client-syncing.spec.js | 1 - spec/integ/megolm-integ.spec.js | 2 -- spec/test-utils.js | 1 - spec/unit/autodiscovery.spec.js | 1 - spec/unit/content-repo.spec.js | 1 - spec/unit/event-timeline.spec.js | 1 - spec/unit/filter.spec.js | 1 - spec/unit/interactive-auth.spec.js | 1 - spec/unit/matrix-client.spec.js | 1 - spec/unit/pushprocessor.spec.js | 1 - spec/unit/realtime-callbacks.spec.js | 2 -- spec/unit/room-member.spec.js | 1 - spec/unit/room-state.spec.js | 1 - spec/unit/room.spec.js | 1 - spec/unit/sync-accumulator.spec.js | 1 - spec/unit/timeline-window.spec.js | 1 - spec/unit/user.spec.js | 1 - spec/unit/utils.spec.js | 1 - src/base-apis.js | 1 - src/client.js | 1 - src/content-helpers.js | 1 - src/crypto/DeviceList.js | 1 - src/crypto/algorithms/index.js | 1 - src/crypto/algorithms/megolm.js | 1 - src/crypto/algorithms/olm.js | 1 - src/crypto/deviceinfo.js | 2 -- src/crypto/index.js | 1 - src/filter-component.js | 2 +- src/filter.js | 2 +- src/http-api.js | 2 +- src/interactive-auth.js | 1 - src/matrix.js | 1 - src/models/event-context.js | 1 - src/models/event-timeline-set.js | 2 +- src/models/event-timeline.js | 1 - src/models/event.js | 1 - src/models/room-member.js | 2 +- src/models/room-state.js | 2 +- src/models/room-summary.js | 2 +- src/models/room.js | 2 +- src/models/search-result.js | 1 - src/models/user.js | 2 +- src/realtime-callbacks.js | 2 -- src/scheduler.js | 2 +- src/store/memory.js | 2 +- src/store/session/webstorage.js | 1 - src/store/stub.js | 2 +- src/sync.js | 1 - src/timeline-window.js | 1 - src/utils.js | 2 +- src/webrtc/call.js | 2 +- 62 files changed, 14 insertions(+), 68 deletions(-) diff --git a/examples/browser/browserTest.js b/examples/browser/browserTest.js index 8f03b9c4b..2698877fd 100644 --- a/examples/browser/browserTest.js +++ b/examples/browser/browserTest.js @@ -1,4 +1,3 @@ -"use strict"; console.log("Loading browser sdk"); var client = matrixcs.createClient("http://matrix.org"); diff --git a/examples/node/app.js b/examples/node/app.js index 688b2a070..46220a065 100644 --- a/examples/node/app.js +++ b/examples/node/app.js @@ -1,5 +1,3 @@ -"use strict"; - var myUserId = "@example:localhost"; var myAccessToken = "QGV4YW1wbGU6bG9jYWxob3N0.qPEvLuYfNBjxikiCjP"; var sdk = require("matrix-js-sdk"); diff --git a/examples/voip/browserTest.js b/examples/voip/browserTest.js index a2f15888a..01f463421 100644 --- a/examples/voip/browserTest.js +++ b/examples/voip/browserTest.js @@ -1,4 +1,3 @@ -"use strict"; console.log("Loading browser sdk"); var BASE_URL = "https://matrix.org"; var TOKEN = "accesstokengoeshere"; diff --git a/spec/TestClient.js b/spec/TestClient.js index 4b661c83b..29b443f4a 100644 --- a/spec/TestClient.js +++ b/spec/TestClient.js @@ -16,8 +16,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -"use strict"; - // load olm before the sdk if possible import './olm-loader'; diff --git a/spec/integ/matrix-client-crypto.spec.js b/spec/integ/matrix-client-crypto.spec.js index 7105a406e..26debf907 100644 --- a/spec/integ/matrix-client-crypto.spec.js +++ b/spec/integ/matrix-client-crypto.spec.js @@ -25,7 +25,6 @@ limitations under the License. * See also `megolm.spec.js`. */ -"use strict"; import 'source-map-support/register'; // load olm before the sdk if possible diff --git a/spec/integ/matrix-client-event-emitter.spec.js b/spec/integ/matrix-client-event-emitter.spec.js index e56d824a5..42117d4fd 100644 --- a/spec/integ/matrix-client-event-emitter.spec.js +++ b/spec/integ/matrix-client-event-emitter.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {TestClient} from "../TestClient"; diff --git a/spec/integ/matrix-client-event-timeline.spec.js b/spec/integ/matrix-client-event-timeline.spec.js index 8815582e1..bd47153ed 100644 --- a/spec/integ/matrix-client-event-timeline.spec.js +++ b/spec/integ/matrix-client-event-timeline.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {EventTimeline} from "../../src/matrix"; diff --git a/spec/integ/matrix-client-methods.spec.js b/spec/integ/matrix-client-methods.spec.js index 35d47ce70..b783fe364 100644 --- a/spec/integ/matrix-client-methods.spec.js +++ b/spec/integ/matrix-client-methods.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {CRYPTO_ENABLED} from "../../src/client"; diff --git a/spec/integ/matrix-client-opts.spec.js b/spec/integ/matrix-client-opts.spec.js index 128a931c9..0a8604c5d 100644 --- a/spec/integ/matrix-client-opts.spec.js +++ b/spec/integ/matrix-client-opts.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import HttpBackend from "matrix-mock-request"; diff --git a/spec/integ/matrix-client-retrying.spec.js b/spec/integ/matrix-client-retrying.spec.js index e79c4e8a2..d773603e0 100644 --- a/spec/integ/matrix-client-retrying.spec.js +++ b/spec/integ/matrix-client-retrying.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import {EventStatus} from "../../src/matrix"; import {MatrixScheduler} from "../../src/scheduler"; diff --git a/spec/integ/matrix-client-room-timeline.spec.js b/spec/integ/matrix-client-room-timeline.spec.js index a6fe5c51c..908cce89e 100644 --- a/spec/integ/matrix-client-room-timeline.spec.js +++ b/spec/integ/matrix-client-room-timeline.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {EventStatus} from "../../src/models/event"; diff --git a/spec/integ/matrix-client-syncing.spec.js b/spec/integ/matrix-client-syncing.spec.js index 5513ecf54..7a323104d 100644 --- a/spec/integ/matrix-client-syncing.spec.js +++ b/spec/integ/matrix-client-syncing.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import {MatrixEvent} from "../../src/models/event"; import {EventTimeline} from "../../src/models/event-timeline"; diff --git a/spec/integ/megolm-integ.spec.js b/spec/integ/megolm-integ.spec.js index b9f084ee4..2e0dc5637 100644 --- a/spec/integ/megolm-integ.spec.js +++ b/spec/integ/megolm-integ.spec.js @@ -15,8 +15,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -"use strict"; - import anotherjson from "another-json"; import * as utils from "../../src/utils"; import * as testUtils from "../test-utils"; diff --git a/spec/test-utils.js b/spec/test-utils.js index 32a68f06a..3ca1a5b9a 100644 --- a/spec/test-utils.js +++ b/spec/test-utils.js @@ -1,4 +1,3 @@ -"use strict"; // load olm before the sdk if possible import './olm-loader'; diff --git a/spec/unit/autodiscovery.spec.js b/spec/unit/autodiscovery.spec.js index 6bdf3cd02..bdf021a2b 100644 --- a/spec/unit/autodiscovery.spec.js +++ b/spec/unit/autodiscovery.spec.js @@ -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 limitations under the License. */ -"use strict"; import 'source-map-support/register'; diff --git a/spec/unit/content-repo.spec.js b/spec/unit/content-repo.spec.js index d40d40d93..cf2145f7c 100644 --- a/spec/unit/content-repo.spec.js +++ b/spec/unit/content-repo.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as ContentRepo from "../../src/content-repo"; diff --git a/spec/unit/event-timeline.spec.js b/spec/unit/event-timeline.spec.js index a4fc0ff5e..a02413503 100644 --- a/spec/unit/event-timeline.spec.js +++ b/spec/unit/event-timeline.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {EventTimeline} from "../../src/models/event-timeline"; diff --git a/spec/unit/filter.spec.js b/spec/unit/filter.spec.js index 251495e0a..d203ea0d3 100644 --- a/spec/unit/filter.spec.js +++ b/spec/unit/filter.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import {Filter} from "../../src/filter"; diff --git a/spec/unit/interactive-auth.spec.js b/spec/unit/interactive-auth.spec.js index c15543be8..c11b18ba2 100644 --- a/spec/unit/interactive-auth.spec.js +++ b/spec/unit/interactive-auth.spec.js @@ -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 limitations under the License. */ -"use strict"; import 'source-map-support/register'; import {logger} from "../../src/logger"; diff --git a/spec/unit/matrix-client.spec.js b/spec/unit/matrix-client.spec.js index a36371bf5..bc8a4e0a8 100644 --- a/spec/unit/matrix-client.spec.js +++ b/spec/unit/matrix-client.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import {logger} from "../../src/logger"; diff --git a/spec/unit/pushprocessor.spec.js b/spec/unit/pushprocessor.spec.js index 3fcecdb5a..aa0f8d08e 100644 --- a/spec/unit/pushprocessor.spec.js +++ b/spec/unit/pushprocessor.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {PushProcessor} from "../../src/pushprocessor"; diff --git a/spec/unit/realtime-callbacks.spec.js b/spec/unit/realtime-callbacks.spec.js index 712818c04..5d5f92396 100644 --- a/spec/unit/realtime-callbacks.spec.js +++ b/spec/unit/realtime-callbacks.spec.js @@ -1,5 +1,3 @@ -"use strict"; - import 'source-map-support/register'; import * as callbacks from "../../src/realtime-callbacks"; diff --git a/spec/unit/room-member.spec.js b/spec/unit/room-member.spec.js index 8ab78583c..5d97abf00 100644 --- a/spec/unit/room-member.spec.js +++ b/spec/unit/room-member.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {RoomMember} from "../../src/models/room-member"; diff --git a/spec/unit/room-state.spec.js b/spec/unit/room-state.spec.js index c5a0a1745..6d3902280 100644 --- a/spec/unit/room-state.spec.js +++ b/spec/unit/room-state.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {RoomState} from "../../src/models/room-state"; diff --git a/spec/unit/room.spec.js b/spec/unit/room.spec.js index ff1880708..a474a1a00 100644 --- a/spec/unit/room.spec.js +++ b/spec/unit/room.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../test-utils"; import {EventStatus, MatrixEvent} from "../../src/models/event"; diff --git a/spec/unit/sync-accumulator.spec.js b/spec/unit/sync-accumulator.spec.js index 1cdc88214..d9d0fc236 100644 --- a/spec/unit/sync-accumulator.spec.js +++ b/spec/unit/sync-accumulator.spec.js @@ -15,7 +15,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -"use strict"; import 'source-map-support/register'; import {SyncAccumulator} from "../../src/sync-accumulator"; diff --git a/spec/unit/timeline-window.spec.js b/spec/unit/timeline-window.spec.js index 2916cfba8..427fa4b61 100644 --- a/spec/unit/timeline-window.spec.js +++ b/spec/unit/timeline-window.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import {EventTimeline} from "../../src/models/event-timeline"; import {TimelineIndex, TimelineWindow} from "../../src/timeline-window"; diff --git a/spec/unit/user.spec.js b/spec/unit/user.spec.js index 6f20eb0dd..eb21bffa1 100644 --- a/spec/unit/user.spec.js +++ b/spec/unit/user.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import {User} from "../../src/models/user"; import * as utils from "../test-utils"; diff --git a/spec/unit/utils.spec.js b/spec/unit/utils.spec.js index 83ddcf184..c30af59a3 100644 --- a/spec/unit/utils.spec.js +++ b/spec/unit/utils.spec.js @@ -1,4 +1,3 @@ -"use strict"; import 'source-map-support/register'; import * as utils from "../../src/utils"; diff --git a/src/base-apis.js b/src/base-apis.js index af473e7b6..576e32cdb 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -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 limitations under the License. */ -"use strict"; /** * This is an internal module. MatrixBaseApis is currently only meant to be used diff --git a/src/client.js b/src/client.js index 8fa8c7091..04158dd64 100644 --- a/src/client.js +++ b/src/client.js @@ -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 limitations under the License. */ -"use strict"; /** diff --git a/src/content-helpers.js b/src/content-helpers.js index 1d704f05b..c82f808c5 100644 --- a/src/content-helpers.js +++ b/src/content-helpers.js @@ -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 limitations under the License. */ -"use strict"; /** @module ContentHelpers */ diff --git a/src/crypto/DeviceList.js b/src/crypto/DeviceList.js index 44aa05735..073eb5282 100644 --- a/src/crypto/DeviceList.js +++ b/src/crypto/DeviceList.js @@ -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 limitations under the License. */ -"use strict"; /** * @module crypto/DeviceList diff --git a/src/crypto/algorithms/index.js b/src/crypto/algorithms/index.js index 6895b3dcb..0fb646cfe 100644 --- a/src/crypto/algorithms/index.js +++ b/src/crypto/algorithms/index.js @@ -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 limitations under the License. */ -"use strict"; /** * @module crypto/algorithms diff --git a/src/crypto/algorithms/megolm.js b/src/crypto/algorithms/megolm.js index 5bfd5eae0..1f88e9eed 100644 --- a/src/crypto/algorithms/megolm.js +++ b/src/crypto/algorithms/megolm.js @@ -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 limitations under the License. */ -"use strict"; /** * Defines m.olm encryption/decryption diff --git a/src/crypto/algorithms/olm.js b/src/crypto/algorithms/olm.js index 3e813b14b..3e2ad8123 100644 --- a/src/crypto/algorithms/olm.js +++ b/src/crypto/algorithms/olm.js @@ -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 limitations under the License. */ -"use strict"; /** * Defines m.olm encryption/decryption diff --git a/src/crypto/deviceinfo.js b/src/crypto/deviceinfo.js index 34bffba8a..379d72c63 100644 --- a/src/crypto/deviceinfo.js +++ b/src/crypto/deviceinfo.js @@ -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 limitations under the License. */ -"use strict"; - /** * @module crypto/deviceinfo diff --git a/src/crypto/index.js b/src/crypto/index.js index 96cef52ae..d6f8135f3 100644 --- a/src/crypto/index.js +++ b/src/crypto/index.js @@ -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 limitations under the License. */ -"use strict"; /** * @module crypto diff --git a/src/filter-component.js b/src/filter-component.js index a9a11411f..7e8fd5244 100644 --- a/src/filter-component.js +++ b/src/filter-component.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module filter-component */ diff --git a/src/filter.js b/src/filter.js index 34cf41760..f8884b27b 100644 --- a/src/filter.js +++ b/src/filter.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module filter */ diff --git a/src/http-api.js b/src/http-api.js index 8a1cc75ae..927947432 100644 --- a/src/http-api.js +++ b/src/http-api.js @@ -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 limitations under the License. */ -"use strict"; + /** * This is an internal module. See {@link MatrixHttpApi} for the public class. * @module http-api diff --git a/src/interactive-auth.js b/src/interactive-auth.js index e1b3b7bcf..f4bf1bb18 100644 --- a/src/interactive-auth.js +++ b/src/interactive-auth.js @@ -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 limitations under the License. */ -"use strict"; /** @module interactive-auth */ diff --git a/src/matrix.js b/src/matrix.js index a311d211c..f611d1d7c 100644 --- a/src/matrix.js +++ b/src/matrix.js @@ -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 limitations under the License. */ -"use strict"; import {MemoryCryptoStore} from "./crypto/store/memory-crypto-store"; import {MemoryStore} from "./store/memory"; diff --git a/src/models/event-context.js b/src/models/event-context.js index 84808f847..5ffb103fe 100644 --- a/src/models/event-context.js +++ b/src/models/event-context.js @@ -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 limitations under the License. */ -"use strict"; /** * @module models/event-context diff --git a/src/models/event-timeline-set.js b/src/models/event-timeline-set.js index 7e808db81..afe827195 100644 --- a/src/models/event-timeline-set.js +++ b/src/models/event-timeline-set.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module models/event-timeline-set */ diff --git a/src/models/event-timeline.js b/src/models/event-timeline.js index e678d88e5..20fee86a2 100644 --- a/src/models/event-timeline.js +++ b/src/models/event-timeline.js @@ -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 limitations under the License. */ -"use strict"; /** * @module models/event-timeline diff --git a/src/models/event.js b/src/models/event.js index 42ae71961..017acf176 100644 --- a/src/models/event.js +++ b/src/models/event.js @@ -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 limitations under the License. */ -"use strict"; /** * This is an internal module. See {@link MatrixEvent} and {@link RoomEvent} for diff --git a/src/models/room-member.js b/src/models/room-member.js index 0e2489208..fb53f5614 100644 --- a/src/models/room-member.js +++ b/src/models/room-member.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module models/room-member */ diff --git a/src/models/room-state.js b/src/models/room-state.js index d248c8a32..70590b465 100644 --- a/src/models/room-state.js +++ b/src/models/room-state.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module models/room-state */ diff --git a/src/models/room-summary.js b/src/models/room-summary.js index 060559e38..037fe2bd6 100644 --- a/src/models/room-summary.js +++ b/src/models/room-summary.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module models/room-summary */ diff --git a/src/models/room.js b/src/models/room.js index e5b92c7c1..fae36d2ca 100644 --- a/src/models/room.js +++ b/src/models/room.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module models/room */ diff --git a/src/models/search-result.js b/src/models/search-result.js index 28be3169e..a8b50ea4b 100644 --- a/src/models/search-result.js +++ b/src/models/search-result.js @@ -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 limitations under the License. */ -"use strict"; /** * @module models/search-result diff --git a/src/models/user.js b/src/models/user.js index 32b557793..fe785586b 100644 --- a/src/models/user.js +++ b/src/models/user.js @@ -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 limitations under the License. */ -"use strict"; + /** * @module models/user */ diff --git a/src/realtime-callbacks.js b/src/realtime-callbacks.js index a8887c92a..0d21e23fb 100644 --- a/src/realtime-callbacks.js +++ b/src/realtime-callbacks.js @@ -24,8 +24,6 @@ limitations under the License. * it will instead fire as soon as possible after resume. */ -"use strict"; - import {logger} from './logger'; // we schedule a callback at least this often, to check if we've missed out on diff --git a/src/scheduler.js b/src/scheduler.js index 07fef66e0..c1a027ab4 100644 --- a/src/scheduler.js +++ b/src/scheduler.js @@ -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 limitations under the License. */ -"use strict"; + /** * This is an internal module which manages queuing, scheduling and retrying * of requests. diff --git a/src/store/memory.js b/src/store/memory.js index 7ec2a701f..e420e05ac 100644 --- a/src/store/memory.js +++ b/src/store/memory.js @@ -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 limitations under the License. */ -"use strict"; + /** * This is an internal module. See {@link MemoryStore} for the public class. * @module store/memory diff --git a/src/store/session/webstorage.js b/src/store/session/webstorage.js index 325359abe..0bdceb0e0 100644 --- a/src/store/session/webstorage.js +++ b/src/store/session/webstorage.js @@ -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 limitations under the License. */ -"use strict"; /** * @module store/session/webstorage diff --git a/src/store/stub.js b/src/store/stub.js index 6f74848f7..f94e97393 100644 --- a/src/store/stub.js +++ b/src/store/stub.js @@ -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 limitations under the License. */ -"use strict"; + /** * This is an internal module. * @module store/stub diff --git a/src/sync.js b/src/sync.js index e575e58d4..b4894724d 100644 --- a/src/sync.js +++ b/src/sync.js @@ -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 limitations under the License. */ -"use strict"; /* * TODO: diff --git a/src/timeline-window.js b/src/timeline-window.js index c6edbf561..c087600c8 100644 --- a/src/timeline-window.js +++ b/src/timeline-window.js @@ -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 limitations under the License. */ -"use strict"; /** @module timeline-window */ diff --git a/src/utils.js b/src/utils.js index 1b5798960..357ce3a08 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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 limitations under the License. */ -"use strict"; + /** * This is an internal module. * @module utils diff --git a/src/webrtc/call.js b/src/webrtc/call.js index ee9a671ac..4128e98ed 100644 --- a/src/webrtc/call.js +++ b/src/webrtc/call.js @@ -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 limitations under the License. */ -"use strict"; + /** * This is an internal module. See {@link createNewMatrixCall} for the public API. * @module webrtc/call