message: remove unused function and interface
diff: @@ -62,10 +62,6 @@ export interface UsageMetrics {
  reset();
  }
  -export interface UsageMetricsWriter {
  - writeBytesTransferred(accessKeyId: AccessKeyId, numBytes: number, countries: string[]);
  -}
  -
  // Reads data usage metrics from Prometheus.
  export class PrometheusUsageMetrics implements UsageMetrics {
  private resetTimeMs: number = Date.now();
  @@ -98,21 +94,6 @@ export class PrometheusUsageMetrics implements UsageMetrics {
  }
  }
  -export function createPrometheusUsageMetricsWriter(registry: prometheus.Registry):
  - UsageMetricsWriter {
  - const usageCounter = new prometheus.Counter({
  - name: 'shadowsocks_data_bytes',
  - help: 'Bytes transferred by the proxy',
  - labelNames: ['dir', 'proto', 'location', 'status', 'access_key']
  - });
  - registry.registerMetric(usageCounter);
  - return {
  - writeBytesTransferred(accessKeyId: AccessKeyId, inboundBytes: number, countries: string[]) {
  - usageCounter.labels('>p<', '', countries.join(','), '', accessKeyId).inc(inboundBytes);
  - }
  - };
  -}
  -
  export interface MetricsCollectorClient {
  collectMetrics(reportJson: HourlyServerMetricsReportJson): Promise<void>;
  }
  