build: remove unused imports and mutability
This commit is contained in:
parent
f99109bf8e
commit
e529c011b0
4 changed files with 3 additions and 8 deletions
|
@ -12,7 +12,6 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use crate::gui::PlatformApp;
|
|
||||||
use crate::gui::platform::PlatformCallbacks;
|
use crate::gui::platform::PlatformCallbacks;
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
|
|
|
@ -13,8 +13,8 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use std::cmp::min;
|
use std::cmp::min;
|
||||||
|
use std::sync::RwLock;
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::sync::{RwLock, RwLockWriteGuard};
|
|
||||||
|
|
||||||
use egui::{Align2, RichText, Rounding, Stroke, Vec2};
|
use egui::{Align2, RichText, Rounding, Stroke, Vec2};
|
||||||
use egui::epaint::RectShape;
|
use egui::epaint::RectShape;
|
||||||
|
@ -178,7 +178,7 @@ impl Modal {
|
||||||
|
|
||||||
/// Draw [`egui::Window`] with provided content.
|
/// Draw [`egui::Window`] with provided content.
|
||||||
fn window_ui(&self, ui: &mut egui::Ui, add_content: impl FnOnce(&mut egui::Ui, &Modal)) {
|
fn window_ui(&self, ui: &mut egui::Ui, add_content: impl FnOnce(&mut egui::Ui, &Modal)) {
|
||||||
let mut rect = ui.ctx().screen_rect();
|
let rect = ui.ctx().screen_rect();
|
||||||
egui::Window::new("modal_bg_window")
|
egui::Window::new("modal_bg_window")
|
||||||
.title_bar(false)
|
.title_bar(false)
|
||||||
.resizable(false)
|
.resizable(false)
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use eframe::emath::Align;
|
use egui::{Id, RichText, TextStyle, Ui, Widget};
|
||||||
use egui::{Id, Layout, RichText, TextStyle, Ui, Widget};
|
|
||||||
use egui::os::OperatingSystem;
|
|
||||||
use egui_extras::{Size, StripBuilder};
|
use egui_extras::{Size, StripBuilder};
|
||||||
use grin_core::global::ChainTypes;
|
use grin_core::global::ChainTypes;
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rust_i18n;
|
extern crate rust_i18n;
|
||||||
|
|
||||||
use std::sync::Arc;
|
|
||||||
|
|
||||||
use egui::{Context, Stroke};
|
use egui::{Context, Stroke};
|
||||||
#[cfg(target_os = "android")]
|
#[cfg(target_os = "android")]
|
||||||
use winit::platform::android::activity::AndroidApp;
|
use winit::platform::android::activity::AndroidApp;
|
||||||
|
|
Loading…
Reference in a new issue