Skip to content

Commit 7e21da0

Browse files
committed
Step 4: Disable/remove bulk of skinner code
1 parent b667ef9 commit 7e21da0

File tree

5 files changed

+3
-136
lines changed

5 files changed

+3
-136
lines changed

src/@types/global.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import { SetupEncryptionStore } from "../stores/SetupEncryptionStore";
5050
import { RoomScrollStateStore } from "../stores/RoomScrollStateStore";
5151
import { ConsoleLogger, IndexedDBLogStore } from "../rageshake/rageshake";
5252
import ActiveWidgetStore from "../stores/ActiveWidgetStore";
53-
import { Skinner } from "../Skinner";
5453
import AutoRageshakeStore from "../stores/AutoRageshakeStore";
5554
import { IConfigOptions } from "../IConfigOptions";
5655

@@ -107,7 +106,6 @@ declare global {
107106
mxSetupEncryptionStore?: SetupEncryptionStore;
108107
mxRoomScrollStateStore?: RoomScrollStateStore;
109108
mxActiveWidgetStore?: ActiveWidgetStore;
110-
mxSkinner?: Skinner;
111109
mxOnRecaptchaLoaded?: () => void;
112110
electron?: Electron;
113111
mxSendSentryReport: (userText: string, issueUrl: string, error: Error) => Promise<void>;

src/Skinner.ts

Lines changed: 0 additions & 121 deletions
This file was deleted.

src/index.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,11 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
import Skinner, { ISkinObject } from './Skinner';
19-
2018
// Import the js-sdk so the proper `request` object can be set. This does some
2119
// magic with the browser injection to make all subsequent imports work fine.
2220
import "matrix-js-sdk/src/browser-index";
2321

24-
export function loadSkin(skinObject: ISkinObject): void {
25-
Skinner.load(skinObject);
26-
}
27-
28-
export function resetSkin(): void {
29-
Skinner.reset();
30-
}
31-
3222
export function getComponent(componentName: string): any {
33-
return Skinner.getComponent(componentName);
23+
// return Skinner.getComponent(componentName);
3424
}
3525

test/minimal-sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ import * as sdk from "../src/index";
2424

2525
const components = {};
2626

27-
sdk.loadSkin({ components });
27+
// sdk.loadSkin({ components });
2828

2929
export default sdk;

test/skinned-sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ components['views.messages.MessageTimestamp'] = stubComponent({ displayName: 'Me
2323
components['views.messages.SenderProfile'] = stubComponent({ displayName: 'SenderProfile' });
2424
components['views.rooms.SearchBar'] = stubComponent();
2525

26-
sdk.loadSkin({ components });
26+
// sdk.loadSkin({ components });
2727

2828
export default sdk;

0 commit comments

Comments
 (0)