Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Mar 18, 2020
1 parent 8275354 commit 4088170
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
5 changes: 2 additions & 3 deletions src/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import * as fs from 'fs';
import * as path from 'path';
import * as vscode from 'vscode';
import { iconJsonName } from '../icons/index';
import { AdvancedWorkspaceConfiguration } from '../models';
import { IconConfiguration } from '../models/index';
import * as reloadMessages from './../messages/reload';

/** Get configuration of vs code. */
export const getConfig = (section?: string) => {
return vscode.workspace.getConfiguration(section) as AdvancedWorkspaceConfiguration;
return vscode.workspace.getConfiguration(section);
};

/** Get list of configuration entries of package.json */
Expand Down Expand Up @@ -78,5 +77,5 @@ export const capitalizeFirstLetter = (name: string): string => name.charAt(0).to

/** TitleCase all words in a string */
export const toTitleCase = (str) => {
return str.replace(/\w\S*/g, (txt) => { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); });
return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase());
};
7 changes: 0 additions & 7 deletions src/models/advancedWorkspaceConfiguration.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './icons';
export * from './i18n';
export * from './iconConfiguration';
export * from './advancedWorkspaceConfiguration';
4 changes: 0 additions & 4 deletions src/scripts/helpers/titleCase.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/scripts/preview/preview.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as fs from 'fs';
import * as path from 'path';
import * as painter from './../helpers/painter';
import { toTitleCase } from './../helpers/titleCase';
import { toTitleCase } from '../../helpers';
import { createScreenshot } from '../helpers/screenshots';
import * as painter from './../helpers/painter';

const htmlDoctype = '<!DOCTYPE html>';
const cssFilePath = path.join('style.css');
Expand Down

0 comments on commit 4088170

Please sign in to comment.