2021-06-07 16:39:13 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
import { getEnvironment, Environment } from '../environment';
|
|
|
|
import * as log from '../logging/log';
|
|
|
|
|
|
|
|
export function deprecated(message?: string): void {
|
|
|
|
if (getEnvironment() === Environment.Development) {
|
2021-07-13 00:43:56 +00:00
|
|
|
log.error(`This method is deprecated: ${message}`);
|
2021-06-07 16:39:13 +00:00
|
|
|
}
|
|
|
|
}
|