mirror of https://codeberg.org/topola/topola.git
egui: remove long-superseded `channel_text()` routine
This commit is contained in:
parent
12f43a112e
commit
55be63b942
|
|
@ -220,15 +220,3 @@ pub fn execute<F: Future<Output = ()> + Send + 'static>(f: F) {
|
||||||
pub fn execute<F: Future<Output = ()> + 'static>(f: F) {
|
pub fn execute<F: Future<Output = ()> + 'static>(f: F) {
|
||||||
wasm_bindgen_futures::spawn_local(f);
|
wasm_bindgen_futures::spawn_local(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
|
||||||
pub async fn channel_text(file_handle: rfd::FileHandle) -> String {
|
|
||||||
file_handle.path().to_str().unwrap().to_string()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
pub async fn channel_text(file_handle: rfd::FileHandle) -> String {
|
|
||||||
std::str::from_utf8(&file_handle.read().await)
|
|
||||||
.unwrap()
|
|
||||||
.to_string()
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ use topola::{
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
action::{Action, Switch, Trigger},
|
action::{Action, Switch, Trigger},
|
||||||
app::{channel_text, execute},
|
app::execute,
|
||||||
file_sender::FileSender,
|
file_sender::FileSender,
|
||||||
overlay::Overlay,
|
overlay::Overlay,
|
||||||
translator::Translator,
|
translator::Translator,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue