Skip to content

Commit

Permalink
Removed SimpleSignal completely
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Oct 31, 2024
1 parent e00362b commit b275077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Generator/Generator/ClassGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ func getGenericSignalType(_ signal: JGodotSignal) -> String {
}
}

return argTypes.isEmpty ? "SimpleSignal" : "GenericSignal<\(argTypes.joined(separator: ", "))>"
return argTypes.isEmpty ? "GenericSignal< /* no args */ >" : "GenericSignal<\(argTypes.joined(separator: ", "))>"
}

/// Return the names of a signal's parameters,
Expand Down Expand Up @@ -552,7 +552,7 @@ func generateSignals (_ p: Printer,
signalProxyType = getGenericSignalType(signal)
lambdaSig = " \(getGenericSignalLambdaArgs(signal)) in"
} else {
signalProxyType = "SimpleSignal"
signalProxyType = "GenericSignal< /* no args */ >"
lambdaSig = ""
}
let signalName = godotMethodToSwift (signal.name)
Expand Down
3 changes: 0 additions & 3 deletions Sources/SwiftGodot/Core/SignalSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,3 @@ public class SignalProxy: Object {
return nil
}
}

/// The simple signal is used to raise signals that take no arguments and return no values.
public typealias SimpleSignal = GenericSignal< /* no generic arguments */>

0 comments on commit b275077

Please sign in to comment.