Skip to content

Commit d8a9393

Browse files
committed
Remove println
1 parent f5753c8 commit d8a9393

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Diff for: crates/xetex_layout/src/c_api/engine.rs

-20
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,6 @@ impl XeTeXLayoutEngineBase {
198198

199199
#[no_mangle]
200200
pub unsafe extern "C" fn deleteLayoutEngine(this: XeTeXLayoutEngine) {
201-
eprintln!("deleteLayoutEngine({:p})", this);
202-
eprintln!("Font: {:p}", &*(*this).font);
203-
eprintln!("Features: {:p}", &*(*this).features);
204-
eprintln!("Shapers: {:p}", &*(*this).shaper_list);
205201
let _ = Box::from_raw(this);
206202
}
207203

@@ -331,7 +327,6 @@ impl XeTeXLayoutEngineBase {
331327
engine: XeTeXLayoutEngine,
332328
req_first: libc::c_int,
333329
) -> libc::c_int {
334-
eprintln!("getFontCharRange");
335330
if req_first != 0 {
336331
(*engine).font().get_first_char_code() as libc::c_int
337332
} else {
@@ -344,15 +339,13 @@ impl XeTeXLayoutEngineBase {
344339
engine: XeTeXLayoutEngine,
345340
glyph_name: *const libc::c_char,
346341
) -> libc::c_int {
347-
eprintln!("mapGlyphToIndex");
348342
(*engine)
349343
.font()
350344
.map_glyph_to_index(CStr::from_ptr(glyph_name)) as libc::c_int
351345
}
352346

353347
#[no_mangle]
354348
pub unsafe extern "C" fn usingGraphite(engine: XeTeXLayoutEngine) -> bool {
355-
eprintln!("usingGraphite");
356349
match &(*engine).shaper {
357350
Some(shaper) => shaper.to_bytes() == b"graphite2",
358351
None => false,
@@ -386,7 +379,6 @@ impl XeTeXLayoutEngineBase {
386379
max: i32,
387380
rtl: bool,
388381
) -> libc::c_int {
389-
eprintln!("layoutChars");
390382
let chars = slice::from_raw_parts(chars, max as usize);
391383
let engine = &mut *engine;
392384

@@ -536,7 +528,6 @@ pub unsafe extern "C" fn getFontFilename(
536528
engine: XeTeXLayoutEngine,
537529
index: *mut u32,
538530
) -> *const libc::c_char {
539-
eprintln!("getFontFilename");
540531
(*engine)
541532
.font()
542533
.get_filename(&mut *index)
@@ -546,13 +537,11 @@ pub unsafe extern "C" fn getFontFilename(
546537

547538
#[no_mangle]
548539
pub unsafe extern "C" fn freeFontFilename(filename: *const libc::c_char) {
549-
eprintln!("freeFontFilename");
550540
let _ = CString::from_raw(filename.cast_mut());
551541
}
552542

553543
#[no_mangle]
554544
pub unsafe extern "C" fn getGlyphs(engine: XeTeXLayoutEngine, glyphs: *mut u32) {
555-
eprintln!("getGlyphs");
556545
let hb_glyphs = (*engine).hb_buffer.get_glyph_info();
557546

558547
for (idx, glyph) in hb_glyphs.iter().enumerate() {
@@ -562,7 +551,6 @@ pub unsafe extern "C" fn getGlyphs(engine: XeTeXLayoutEngine, glyphs: *mut u32)
562551

563552
#[no_mangle]
564553
pub unsafe extern "C" fn getGlyphAdvances(engine: XeTeXLayoutEngine, advances: *mut f32) {
565-
eprintln!("getGlyphAdvances");
566554
let engine = &*engine;
567555
let hb_positions = engine.hb_buffer.get_glyph_position();
568556

@@ -579,7 +567,6 @@ pub unsafe extern "C" fn getGlyphAdvances(engine: XeTeXLayoutEngine, advances: *
579567

580568
#[no_mangle]
581569
pub unsafe extern "C" fn getGlyphPositions(engine: XeTeXLayoutEngine, positions: *mut FloatPoint) {
582-
eprintln!("getGlyphPositions");
583570
let engine = &mut *engine;
584571
let hb_positions = engine.hb_buffer.get_glyph_position();
585572

@@ -681,7 +668,6 @@ pub unsafe extern "C" fn getGraphiteFeatureSettingCode(
681668
feature_id: u32,
682669
index: u32,
683670
) -> u32 {
684-
eprintln!("getGraphiteFeatureSettingCode");
685671
get_graphite_feature_setting_code(&*engine, feature_id, index).unwrap_or(0)
686672
}
687673

@@ -707,7 +693,6 @@ pub unsafe extern "C" fn getGraphiteFeatureDefaultSetting(
707693
engine: XeTeXLayoutEngine,
708694
feature_id: u32,
709695
) -> u32 {
710-
eprintln!("getGraphiteFeatureDefaultSetting");
711696
get_graphite_feature_default_setting(&*engine, feature_id).unwrap_or(0)
712697
}
713698

@@ -727,7 +712,6 @@ pub unsafe extern "C" fn getGraphiteFeatureLabel(
727712
engine: XeTeXLayoutEngine,
728713
feature_id: u32,
729714
) -> *const libc::c_char {
730-
eprintln!("getGraphiteFeatureLabel");
731715
match get_graphite_feature_label(&*engine, feature_id) {
732716
Some(label) => label.into_raw().cast(),
733717
None => ptr::null_mut(),
@@ -758,7 +742,6 @@ pub unsafe extern "C" fn getGraphiteFeatureSettingLabel(
758742
feature_id: u32,
759743
setting_id: u32,
760744
) -> *const libc::c_char {
761-
eprintln!("getGraphiteFeatureSettingLabel");
762745
match get_graphite_feature_setting_label(&*engine, feature_id, setting_id) {
763746
Some(label) => label.into_raw().cast(),
764747
None => ptr::null(),
@@ -811,7 +794,6 @@ pub unsafe extern "C" fn findGraphiteFeature(
811794
f: *mut hb::Tag,
812795
v: *mut libc::c_int,
813796
) -> bool {
814-
eprintln!("findGraphiteFeature");
815797
let len = e.byte_offset_from(s).unsigned_abs();
816798
let str = slice::from_raw_parts(s.cast(), len);
817799
find_graphite_feature(&*engine, str, &mut *f, &mut *v)
@@ -902,7 +884,6 @@ pub unsafe extern "C" fn initGraphiteBreaking(
902884
txt_ptr: *const u16,
903885
txt_len: libc::c_uint,
904886
) -> bool {
905-
eprintln!("initGraphiteBreaking");
906887
let engine = &*engine;
907888
let hb_font = engine.font().get_hb_font();
908889
let hb_face = hb_font.get_face();
@@ -952,7 +933,6 @@ pub unsafe extern "C" fn initGraphiteBreaking(
952933

953934
#[no_mangle]
954935
pub unsafe extern "C" fn findNextGraphiteBreak() -> libc::c_int {
955-
eprintln!("findNextGraphiteBreak");
956936
let Some(gr_seg) = GR_SEGMENT.take() else {
957937
return -1;
958938
};

0 commit comments

Comments
 (0)