@@ -67,8 +67,6 @@ $textNodes.Item(1).AppendChild($doc.CreateTextNode($bodyText)) | Out-Null
6767$toast = [Windows.UI.Notifications.ToastNotification]::new($doc)
6868[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('Codex').Show($toast)
6969"# ,
70- encoded_title = encoded_title,
71- encoded_body = encoded_body,
7270 )
7371}
7472
@@ -102,11 +100,6 @@ pub fn escape_for_xml(input: &str) -> String {
102100
103101#[ cfg( test) ]
104102mod tests {
105- use super :: POWERSHELL_EXE ;
106- use super :: WindowsToastBackend ;
107- use super :: build_encoded_command;
108- use super :: build_ps_script;
109- use super :: encode_argument;
110103 use super :: encode_script_for_powershell;
111104 use super :: escape_for_xml;
112105 use pretty_assertions:: assert_eq;
@@ -128,21 +121,6 @@ mod tests {
128121
129122 #[ test]
130123 fn encodes_utf16le_for_powershell ( ) {
131- assert_eq ! ( encode_script_for_powershell( "A" ) , "QQAA" ) ;
132- }
133-
134- fn format_command_line ( fixed_args : & [ & str ] , encoded_command : & str ) -> String {
135- let mut parts: Vec < String > = fixed_args
136- . iter ( )
137- . map ( |arg| {
138- if arg. chars ( ) . any ( |c| c. is_whitespace ( ) ) {
139- format ! ( "\" {arg}\" " )
140- } else {
141- ( * arg) . to_string ( )
142- }
143- } )
144- . collect ( ) ;
145- parts. push ( format ! ( "\" {encoded_command}\" " ) ) ;
146- parts. join ( " " )
124+ assert_eq ! ( encode_script_for_powershell( "A" ) , "QQA=" ) ;
147125 }
148126}
0 commit comments