Skip to content

Commit

Permalink
Clear unused imports & styles
Browse files Browse the repository at this point in the history
  • Loading branch information
yilozt committed Oct 16, 2023
1 parent c8538c9 commit 4423a44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"func-call-spacing": ["error", "always"],
"no-var": ["error"],
"max-len": ["warn", {
"code": 80,
"code": 120,
"ignorePattern": "^import"
}]
},
Expand Down
5 changes: 4 additions & 1 deletion src/prefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { pages } from './preferences/index.js'
import * as Utils from './utils/io.js'
import { ExtensionPreferences } from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'

declare const imports: any
export default class RoundedWindowCornresPrefs extends ExtensionPreferences {
constructor (metadata: object) {
super (metadata)
Expand Down Expand Up @@ -44,3 +43,7 @@ export default class RoundedWindowCornresPrefs extends ExtensionPreferences {
this._load_css ()
}
}

declare const imports: {
gettext: { textdomain: (uuid: string) => void }
}
4 changes: 1 addition & 3 deletions src/utils/io.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import * as Gio from 'gi://Gio'

import { _log, _logError } from './log.js'

// --------------------------------------------------------------- [end imports]

export const load = (path: string): string => {
const file = Gio.File.new_for_path (path)

const [, contents, ] = file.load_contents (null)
const [, contents] = file.load_contents (null)

const decoder = new TextDecoder ('utf-8')
return decoder.decode (contents)
Expand Down

0 comments on commit 4423a44

Please sign in to comment.