From 1e8b304b3c6cfa16896895c61b83170b3619fe78 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 6 Aug 2019 18:08:17 +0100 Subject: [PATCH] Remove /tint completely and dedup copyright Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../dialogs/_SlashCommandHelpDialog.scss | 18 ------------- src/SlashCommands.js | 27 ------------------- 2 files changed, 45 deletions(-) diff --git a/res/css/views/dialogs/_SlashCommandHelpDialog.scss b/res/css/views/dialogs/_SlashCommandHelpDialog.scss index a0a64f6bec..786a28deef 100644 --- a/res/css/views/dialogs/_SlashCommandHelpDialog.scss +++ b/res/css/views/dialogs/_SlashCommandHelpDialog.scss @@ -1,21 +1,3 @@ -/*! - * - * Copyright 2019 Michael Telatynski <7t3chguy@gmail.com> - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * 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. - * / - */ - /* Copyright Michael Telatynski <7t3chguy@gmail.com> diff --git a/src/SlashCommands.js b/src/SlashCommands.js index ff5bde06f8..72ace22cb6 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -288,33 +288,6 @@ export const CommandMap = { category: CommandCategories.actions, }), - // Room Tint has been unsupported since the redesign - // tint: new Command({ - // name: 'tint', - // args: ' []', - // description: _td('Changes colour scheme of current room'), - // runFn: function(roomId, args) { - // if (args) { - // const matches = args.match(/^(#([\da-fA-F]{3}|[\da-fA-F]{6}))( +(#([\da-fA-F]{3}|[\da-fA-F]{6})))?$/); - // if (matches) { - // Tinter.tint(matches[1], matches[4]); - // const colorScheme = {}; - // colorScheme.primary_color = matches[1]; - // if (matches[4]) { - // colorScheme.secondary_color = matches[4]; - // } else { - // colorScheme.secondary_color = colorScheme.primary_color; - // } - // return success( - // SettingsStore.setValue('roomColor', roomId, SettingLevel.ROOM_ACCOUNT, colorScheme), - // ); - // } - // } - // return reject(this.getUsage()); - // }, - // category: CommandCategories.actions, - // }), - topic: new Command({ name: 'topic', args: '[]',