Skip to content

Commit 88b2230

Browse files
committed
Convert unnecessary class funcs to static
1 parent 6d51e7f commit 88b2230

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/GateEngine/Resources/Importers/ApplePlatformImageImporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public final class ApplePlatformImageImporter: TextureImporter {
2929
return (data, size)
3030
}
3131

32-
public class func canProcessFile(_ file: URL) -> Bool {
32+
public static func canProcessFile(_ file: URL) -> Bool {
3333
guard let identifiers = (CGImageSourceCopyTypeIdentifiers() as? [CFString]) else {
3434
return false
3535
}

Sources/GateEngine/Resources/Importers/PNGImporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public final class PNGImporter: TextureImporter {
1414
return try decode(data: data, size: size, options: options)
1515
}
1616

17-
public class func canProcessFile(_ file: URL) -> Bool {
17+
public static func canProcessFile(_ file: URL) -> Bool {
1818
return file.pathExtension.caseInsensitiveCompare("png") == .orderedSame
1919
}
2020
}

Sources/GateEngine/Resources/Skinning/Skeleton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ extension Skeleton.Joint {
375375
}
376376

377377
extension Skeleton.Joint: Hashable {
378-
final public class func == (lhs: Skeleton.Joint, rhs: Skeleton.Joint) -> Bool {
378+
public static func == (lhs: Skeleton.Joint, rhs: Skeleton.Joint) -> Bool {
379379
return lhs.id == rhs.id
380380
}
381381

Sources/GateEngine/System/Platforms/Win32/Win32/Win32Window.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ final class Win32Window: WindowBacking {
156156
}
157157

158158
extension Win32Window {
159-
fileprivate class func makeHWND(withSize size: Size2, style: Win32WindowStyle) -> HWND {
159+
fileprivate static func makeHWND(withSize size: Size2, style: Win32WindowStyle) -> HWND {
160160
let dwExStyle: DWORD = 0
161161
let lpClassName: [WCHAR] = "\(type(of: Win32Window.self))".windowsUTF16
162162
let lpWindowName: [WCHAR] = ProcessInfo.processInfo.processName.windowsUTF16

0 commit comments

Comments
 (0)