@@ -3,8 +3,6 @@ use crate::writer::{self, rows};
33
44use pyo3:: prelude:: * ;
55
6- use super :: PyOptionComment ;
7-
86#[ pyfunction( name = "convert_timestamp" ) ]
97pub fn py_convert_timestamp ( timestamp : f64 ) -> PyResult < String > {
108 Ok ( writer:: utils:: convert_timestamp ( timestamp) )
@@ -62,63 +60,6 @@ impl PyRows {
6260 }
6361 PyRows { inner : rows }
6462 }
65-
66- fn get ( & self , row : usize , col : usize ) -> PyOptionComment {
67- PyOptionComment :: new ( self . inner [ row] [ col] . clone ( ) )
68- }
69-
70- fn set ( & mut self , row : usize , col : usize , value : PyRef < PyOptionComment > ) {
71- self . inner [ row] [ col] = value. inner . clone ( ) ;
72- }
73- }
74-
75- #[ allow( clippy:: too_many_arguments) ]
76- #[ pyfunction( name = "test_free_rows" ) ]
77- pub fn py_test_free_rows (
78- rows : & python:: writer:: PyRows ,
79- comment : & crate :: python:: PyComment ,
80- row : usize ,
81- width : u32 ,
82- height : u32 ,
83- bottom_reserved : u32 ,
84- duration_marquee : f64 ,
85- duration_still : f64 ,
86- ) -> PyResult < usize > {
87- Ok ( writer:: rows:: test_free_rows (
88- & rows. inner ,
89- & comment. inner ,
90- row,
91- width,
92- height,
93- bottom_reserved,
94- duration_marquee,
95- duration_still,
96- ) )
97- }
98-
99- #[ pyfunction( name = "find_alternative_row" ) ]
100- pub fn py_find_alternative_row (
101- rows : & python:: writer:: PyRows ,
102- comment : & crate :: python:: PyComment ,
103- height : u32 ,
104- bottom_reserved : u32 ,
105- ) -> PyResult < usize > {
106- Ok ( writer:: rows:: find_alternative_row (
107- & rows. inner ,
108- & comment. inner ,
109- height,
110- bottom_reserved,
111- ) )
112- }
113-
114- #[ pyfunction( name = "mark_comment_row" ) ]
115- pub fn py_mark_comment_row (
116- rows : & mut python:: writer:: PyRows ,
117- comment : & crate :: python:: PyComment ,
118- row : usize ,
119- ) -> PyResult < ( ) > {
120- writer:: rows:: mark_comment_row ( & mut rows. inner , & comment. inner , row) ;
121- Ok ( ( ) )
12263}
12364
12465#[ pyfunction( name = "write_head" ) ]
@@ -135,32 +76,6 @@ pub fn py_write_head(
13576 ) )
13677}
13778
138- #[ allow( clippy:: too_many_arguments) ]
139- #[ pyfunction( name = "write_comment" ) ]
140- pub fn py_write_comment (
141- comment : & crate :: python:: PyComment ,
142- row : usize ,
143- width : u32 ,
144- height : u32 ,
145- bottom_reserved : u32 ,
146- fontsize : f32 ,
147- duration_marquee : f64 ,
148- duration_still : f64 ,
149- styleid : & str ,
150- ) -> PyResult < String > {
151- Ok ( writer:: ass:: write_comment (
152- & comment. inner ,
153- row,
154- width,
155- height,
156- bottom_reserved,
157- fontsize,
158- duration_marquee,
159- duration_still,
160- styleid,
161- ) )
162- }
163-
16479#[ allow( clippy:: too_many_arguments) ]
16580#[ pyfunction( name = "write_normal_comment" ) ]
16681pub fn py_write_normal_comment (
0 commit comments